View Single Post
Old 2nd August 2019, 08:58   #20  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
Quote:
Originally Posted by StvG View Post
Code:
^(?!#|assert|.+#.+function)(.+|)function\s+\w+(\s+)?(?=\()
looks "error free" but misses now some functions like this one: (from srestore.avsi)

Code:
        #######################################
        # 3) Unique Runtime Function Definition
        #######################################
		function srestore_inside_%%%(clip source, dm, om, bom, thr, frfac, numr, denm, mec, det, bclp, dclp, fin, sisphbd) {
			ssIsVF  = sisphbd ? source.IsVideoFloat() : false
The previous regex is good enough
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is offline   Reply With Quote