Skip to content
Snippets Groups Projects
Commit a7a47ffd authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

Merge branch 'aggraef/purr-data-cosmetic-regex-change'

parents acb55032 ab995217
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -117,8 +117,9 @@ function console_unwrap_tag(console_elem, tag_name) {
// We need to use a regular expression to search without regard to case
function escapeRegExp(string){
// $& means the whole matched string
return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
return string.replace(/[.*+?^${}()|\[\]\\]/g, "\\$&");
}
function console_find_text(evt, callback) {
var console_text = document.getElementById("p1"),
wrap_tag = "mark",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment