Skip to content

Commit 56df112

Browse files
Fix code scanning alert no. 35: Incomplete string escaping or encoding (#2005)
* 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> * Fix code scanning alert no. 35: Incomplete string escaping or encoding Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 64df6ff commit 56df112

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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) {

test/test376.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ SELECT ASCII('ÿ'); -- 255 - Latin small letter y with diaeresis
239239
tests = (/\/\*([\S\s]+)\*\//m.exec(tests) || ['', ''])[1];
240240

241241
tests
242-
.replace('\r', '')
242+
.replace(/\r/g, '')
243243
.trim()
244244
.split('\n')
245245
.forEach(function (test) {

0 commit comments

Comments
 (0)