mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 03:27:06 -05:00 
			
		
		
		
	[jsinterp] Prevent mis-recognitions of local functions
This commit is contained in:
		@@ -99,7 +99,7 @@ class JSInterpreter(object):
 | 
			
		||||
 | 
			
		||||
    def extract_function(self, funcname):
 | 
			
		||||
        func_m = re.search(
 | 
			
		||||
            (r'(?:function %s|%s\s*=\s*function)' % (
 | 
			
		||||
            (r'(?:function %s|[{;]%s\s*=\s*function)' % (
 | 
			
		||||
                re.escape(funcname), re.escape(funcname))) +
 | 
			
		||||
            r'\((?P<args>[a-z,]+)\){(?P<code>[^}]+)}',
 | 
			
		||||
            self.code)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user