Hello!
Testing JavaScript functions with this:
The function list only shows "test13", "test15", "test5", "test7" and "test9" (in this order - not good!) with the default settings.
I've added this regex in anonymous function list configuration:
It now added "test2" to the list even though this regex matches every test above, but UE doesn't seem to show everything it captures?
In fact if test 1, 2, 3, 4, 11 and 12 lines removed, that single regex will match all just fine on it's own.
Any tips how to make it display every function?
Thank you.
Testing JavaScript functions with this:
Code: Select all
!function(){}() // test1
!function test2(){}() // test2
(function(){})() // test3
(function test4(){})() // test4
test5 = function(){} // test5
test6 = function _test6(){} // test6
let test7 = function(){} // test7
let test8 = function _test8(){} // test8
var test9 = function(){} // test8
var test10 = function _test10(){} // test10
myfunc(function(){}) // test11
myfunc(function test12(){}) // test12
let myobj = {test13 : function(){}} // test13
let myobj = {test14 : function _test14(){}} // test14
var myobj = {test15 : function(){}} // test15
var myobj = {test16 : function _test16(){}} // test16
I've added this regex in anonymous function list configuration:
Code: Select all
(?:(?:(?:(?:var|let)[ \t]+)?([\w.\-]+)[ \t]*[:=]|[(!])[ \t]*)function(?:[ \t]+([\w.\-]+))?[ \t]*\([^)]*\)
In fact if test 1, 2, 3, 4, 11 and 12 lines removed, that single regex will match all just fine on it's own.
Any tips how to make it display every function?
Thank you.