From: GeoSot Date: Fri, 11 Nov 2022 08:40:17 +0000 (+0200) Subject: fix: change `replaceAll` usage introduced in #35566 (#37473) X-Git-Tag: v5.3.0-alpha1~77 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0a484e758666c5ec9bb6e2b5c088de1e778d8fc8;p=thirdparty%2Fbootstrap.git fix: change `replaceAll` usage introduced in #35566 (#37473) --- diff --git a/js/src/util/index.js b/js/src/util/index.js index 8c69221736..b04fdc1201 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