0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

fix: change replaceAll usage introduced in #35566 (#37473)

This commit is contained in:
GeoSot 2022-11-11 10:40:17 +02:00 committed by GitHub
parent e34e1598ca
commit 0a484e7586
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.replaceAll(/#([^\s"#']+)/g, (match, id) => '#' + CSS.escape(id))
selector = selector.replace(/#([^\s"#']+)/g, (match, id) => '#' + CSS.escape(id))
}
return selector