aboutsummaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2022-11-12 10:09:36 +0200
committerGitHub <[email protected]>2022-11-12 10:09:36 +0200
commit5208dd10c4f43b304ebeb75dcf508e016515a248 (patch)
treebb28a065c4e34eda5620ed3cd5bd83312c553e87 /js/src
parent21e036bf137f393827ddb433af136312e6278961 (diff)
downloadbootstrap-5208dd10c4f43b304ebeb75dcf508e016515a248.tar.xz
bootstrap-5208dd10c4f43b304ebeb75dcf508e016515a248.zip
ESLint: enable prefer-template rule (#37484)
Diffstat (limited to 'js/src')
-rw-r--r--js/src/util/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/util/index.js b/js/src/util/index.js
index b04fdc120..b3e577b10 100644
--- a/js/src/util/index.js
+++ b/js/src/util/index.js
@@ -17,7 +17,7 @@ const TRANSITION_END = 'transitionend'
const parseSelector = selector => {
if (selector && window.CSS && window.CSS.escape) {
// document.querySelector needs escaping to handle IDs (html5+) containing for instance /
- selector = selector.replace(/#([^\s"#']+)/g, (match, id) => '#' + CSS.escape(id))
+ selector = selector.replace(/#([^\s"#']+)/g, (match, id) => `#${CSS.escape(id)}`)
}
return selector