mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 07:47:08 -05:00 
			
		
		
		
	@@ -232,7 +232,7 @@ class JSInterpreter(object):
 | 
			
		||||
    def extract_function(self, funcname):
 | 
			
		||||
        func_m = re.search(
 | 
			
		||||
            r'''(?x)
 | 
			
		||||
                (?:function\s+%s|[{;]%s\s*=\s*function|var\s+%s\s*=\s*function)\s*
 | 
			
		||||
                (?:function\s+%s|[{;,]%s\s*=\s*function|var\s+%s\s*=\s*function)\s*
 | 
			
		||||
                \((?P<args>[^)]*)\)\s*
 | 
			
		||||
                \{(?P<code>[^}]+)\}''' % (
 | 
			
		||||
                re.escape(funcname), re.escape(funcname), re.escape(funcname)),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user