Skip to content

Commit e841a9f

Browse files
Fix code scanning alert no. 90: Replacement of a substring with itself
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 523a231 commit e841a9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/15utility.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ var doubleq = (utils.doubleq = function (s) {
132132
133133
*/
134134
var doubleqq = (utils.doubleqq = function (s) {
135-
return s.replace(/\'/g, "'");
135+
return s.replace(/\'/g, "\\'");
136136
});
137137

138138
/**

0 commit comments

Comments
 (0)