From 9ec6b06cc47ee8649896af1fbde1f2f90460a9fc Mon Sep 17 00:00:00 2001 From: Riley Seaburg Date: Wed, 2 Oct 2024 12:08:49 -0500 Subject: [PATCH] Revert "Fix code scanning alert no. 1: Incomplete string escaping or encoding" --- assets/uswds/js/uswds.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/uswds/js/uswds.js b/assets/uswds/js/uswds.js index fb870ae..06daa22 100644 --- a/assets/uswds/js/uswds.js +++ b/assets/uswds/js/uswds.js @@ -628,7 +628,7 @@ var trim = String.prototype.trim ? function (str) { return str.replace(RE_TRIM, ''); }; var queryById = function (id) { - return this.querySelector('[id="' + id.replace(/\\/g, '\\\\').replace(/"/g, '\\"') + '"]'); + return this.querySelector('[id="' + id.replace(/"/g, '\\"') + '"]'); }; module.exports = function resolveIds(ids, doc) { if (typeof ids !== 'string') {