From 1296bdcd3faed3a262c4ded16283fd3f7941b923 Mon Sep 17 00:00:00 2001 From: Mathias Wulff Date: Mon, 30 Dec 2024 01:30:14 +1100 Subject: [PATCH] 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> --- test/test374.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test374.js b/test/test374.js index eb0674bf2f..d9864b29b0 100644 --- a/test/test374.js +++ b/test/test374.js @@ -134,7 +134,7 @@ SELECT FLOOR(@val) -- 0 tests = (/\/\*([\S\s]+)\*\//m.exec(tests) || ['', ''])[1]; tests - .replace('\r', '') + .replace(/\r/g, '') .trim() .split('\n') .forEach(function (test) {