Skip to content

Commit 1296bdc

Browse files
Fix code scanning alert no. 34: Incomplete string escaping or encoding (#2004)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 523a231 commit 1296bdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test374.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ SELECT FLOOR(@val) -- 0
134134
tests = (/\/\*([\S\s]+)\*\//m.exec(tests) || ['', ''])[1];
135135

136136
tests
137-
.replace('\r', '')
137+
.replace(/\r/g, '')
138138
.trim()
139139
.split('\n')
140140
.forEach(function (test) {

0 commit comments

Comments
 (0)