Skip to content

Commit b58137f

Browse files
committed
Shifted typescript eval rules from fruit to default
1 parent 8c7e7dd commit b58137f

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

signatures/default.db

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ require\(['"]adm-zip['"]\)
2828
\.runIn(New|This)?Context[[:space:]]*\(
2929
\.compileFunction[[:space:]]*\(
3030
\._compile[[:space:]]*\(
31+
eval[[:space:]]*\([^\'\"\)]+\)
32+
eval[[:space:]]*\([[:space:]]*\`.*\$\{[^\}]+\}

signatures/fruit.db

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,4 @@ SQL[[:space:]]*\([^\)\;]+[\'\"][[:space:]]*\+[[:space:]]*[^\'\"]+
123123
(LIKE|like)[[:space:]]+(['"][^\'\"]*)?\$\{[^\}]+\}
124124
(ORDER[[:space:]]+BY|order[[:space:]]+by)[[:space:]]+.*\$\{[^\}]+\}
125125
(LIMIT|limit)[[:space:]]+([0-9 ]+,? ?)?\$\{[^\}]+\}
126-
eval[[:space:]]*\([^\'\"\)]+\)
127-
eval[[:space:]]*\([[:space:]]*\`.*\$\{[^\}]+\}
128126
(spawn|execFile|\.exec)(Sync)?[[:space:]]\(.*(\$\{[^\}]+\}|\.query|\.param)

signatures/typescript.db

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ require\(['"]adm-zip['"]\)
1414
\.runIn(New|This)?Context[[:space:]]*\(
1515
\.compileFunction[[:space:]]*\(
1616
\._compile[[:space:]]*\(
17+
eval[[:space:]]*\([^\'\"\)]+\)
18+
eval[[:space:]]*\([[:space:]]*\`.*\$\{[^\}]+\}
1719
\.execSync[[:space:]]*\(
1820
require[[:space:]]*\([[:space:]]*.(child_process|execa).
1921
(spawn|execFile)(Sync)?[[:space:]]\(
@@ -25,8 +27,6 @@ dotfiles.?[[:space:]]*:[[:space:]]*['"][Aa][Ll][Ll][Oo][Ww]['"]
2527
(LIKE|like)[[:space:]]+(['"][^\'\"]*)?\$\{[^\}]+\}
2628
(ORDER[[:space:]]+BY|order[[:space:]]+by)[[:space:]]+.*\$\{[^\}]+\}
2729
(LIMIT|limit)[[:space:]]+([0-9 ]+,? ?)?\$\{[^\}]+\}
28-
eval[[:space:]]*\([^\'\"\)]+\)
29-
eval[[:space:]]*\([[:space:]]*\`.*\$\{[^\}]+\}
3030
(spawn|execFile|\.exec)(Sync)?[[:space:]]\(.*(\$\{[^\}]+\}|\.query|\.param)
3131
algorithm[[:space:]]*:[[:space:]]*['"][Nn][Oo][Nn][Ee]['"]
3232
\$where:[[:space:]]*`[^`]*\$\{[^\}]+\}

signatures/typescript/default.db

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ require\(['"]adm-zip['"]\)
66
\.runIn(New|This)?Context[[:space:]]*\(
77
\.compileFunction[[:space:]]*\(
88
\._compile[[:space:]]*\(
9+
eval[[:space:]]*\([^\'\"\)]+\)
10+
eval[[:space:]]*\([[:space:]]*\`.*\$\{[^\}]+\}

signatures/typescript/fruit.db

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,4 @@
33
(LIKE|like)[[:space:]]+(['"][^\'\"]*)?\$\{[^\}]+\}
44
(ORDER[[:space:]]+BY|order[[:space:]]+by)[[:space:]]+.*\$\{[^\}]+\}
55
(LIMIT|limit)[[:space:]]+([0-9 ]+,? ?)?\$\{[^\}]+\}
6-
eval[[:space:]]*\([^\'\"\)]+\)
7-
eval[[:space:]]*\([[:space:]]*\`.*\$\{[^\}]+\}
86
(spawn|execFile|\.exec)(Sync)?[[:space:]]\(.*(\$\{[^\}]+\}|\.query|\.param)

0 commit comments

Comments
 (0)