aboutsummaryrefslogtreecommitdiff
path: root/js/src/util
diff options
context:
space:
mode:
authorGeoSot <[email protected]>2022-11-11 10:40:17 +0200
committerGitHub <[email protected]>2022-11-11 10:40:17 +0200
commit0a484e758666c5ec9bb6e2b5c088de1e778d8fc8 (patch)
treefd8112de3bc9e72fbe30b188bcdd84b693666475 /js/src/util
parente34e1598ca2e24c3f502ed475b51a9f7fe0973f4 (diff)
downloadbootstrap-0a484e758666c5ec9bb6e2b5c088de1e778d8fc8.tar.xz
bootstrap-0a484e758666c5ec9bb6e2b5c088de1e778d8fc8.zip
fix: change `replaceAll` usage introduced in #35566 (#37473)
Diffstat (limited to 'js/src/util')
-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 8c6922173..b04fdc120 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.replaceAll(/#([^\s"#']+)/g, (match, id) => '#' + CSS.escape(id))
+ selector = selector.replace(/#([^\s"#']+)/g, (match, id) => '#' + CSS.escape(id))
}
return selector