File tree 4 files changed +4
-4
lines changed
source/DataStructures/Lua
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ public class Accessor : DataStructure
8
8
{
9
9
public override Regex GetRegex ( )
10
10
{
11
- return new Regex ( @"\s* AccessorFunc\s*\((\w|,|\s)+\)" ) ;
11
+ return new Regex ( @"AccessorFunc\s*\((\w|,|\s)+\)" ) ;
12
12
}
13
13
14
14
public override bool CheckMatch ( string line )
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public class CreateConVar : DataStructure
15
15
16
16
public override Regex GetRegex ( )
17
17
{
18
- return new Regex ( @"\s* CreateConVar\s*\(.*\)" ) ;
18
+ return new Regex ( @"CreateConVar\s*\(.*\)" ) ;
19
19
}
20
20
21
21
public override bool CheckMatch ( string line )
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public class Function : DataStructure
19
19
public override Regex GetRegex ( )
20
20
{
21
21
// RegEx matches "@function opt.name(param, opt)" or "local function opt:name()"
22
- return new Regex ( @"(^\s* (local\s+)?\s* |@)function\s*\w+((\.|\:)\w+)* \s*\((\w+\s*(,\s*\w+\s*)*)?\)" ) ;
22
+ return new Regex ( @"((local\s+)?|@)function\s*\w+((\.|\:)\w+)? \s*\((\s* \w+\s*(,\s*\w+\s*)*)?\)" ) ;
23
23
}
24
24
25
25
public override bool CheckMatch ( string line )
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public class Hook : DataStructure
27
27
28
28
public override Regex GetRegex ( )
29
29
{
30
- return new Regex ( @"\s* hook\.(Run|Call)\s*\(.*\)" ) ; // RegEx matches "hook.Run(" or "hook.Call("
30
+ return new Regex ( @"hook\.(Run|Call)\s*\(.*\)" ) ; // RegEx matches "hook.Run(" or "hook.Call("
31
31
}
32
32
33
33
public override bool CheckMatch ( string line )
You can’t perform that action at this time.
0 commit comments