Skip to content

Commit

Permalink
fix: change replaceAll usage introduced in #35566 (#37473)
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoSot authored Nov 11, 2022
1 parent e34e159 commit 0a484e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/util/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a484e7

Please sign in to comment.