2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-05 16:42:29 +03:00

ESLint: enable prefer-template rule (#37484)

This commit is contained in:
XhmikosR
2022-11-12 10:09:36 +02:00
committed by GitHub
parent 21e036bf13
commit 5208dd10c4
9 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -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