]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fix: change `replaceAll` usage introduced in #35566 (#37473)
authorGeoSot <geo.sotis@gmail.com>
Fri, 11 Nov 2022 08:40:17 +0000 (10:40 +0200)
committerGitHub <noreply@github.com>
Fri, 11 Nov 2022 08:40:17 +0000 (10:40 +0200)
js/src/util/index.js

index 8c692217364d7b312d3165fad44e814ff27d562e..b04fdc12016151376cb04649d6ab162da9ad1517 100644 (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