more search regex changes to ignore \"

This commit is contained in:
Til Schmitter 2026-04-17 13:21:05 +02:00
parent 3c3baa0572
commit 4cf3f27a6e
2 changed files with 4 additions and 4 deletions

View file

@ -2540,8 +2540,8 @@ html.y #bbox-overlay figcaption a {
.modalheader { .modalheader {
display: flex; display: flex;
align-items: center; align-items: center;
margin: 0 2.5em 0 0; margin: 0;
padding: .7em; padding: .7em 3em .7em .7em;
background: var(--ttlbar); background: var(--ttlbar);
font-size: large; font-size: large;
font-weight: bold; font-weight: bold;

View file

@ -6788,8 +6788,8 @@ var search_ui = (function () {
function onlyUnique(value, index, array) { function onlyUnique(value, index, array) {
return array.indexOf(value) === index && value?.length > 0; return array.indexOf(value) === index && value?.length > 0;
} }
var immune = vs.match(/(([^\s]*|)"[^"]*"([^\s]*|))/)?.filter(onlyUnique) var immune = vs.match(/\B("(?:[^"]|\\")*[^\\]")\B/g)?.filter(onlyUnique)
for(var i=0; i<immune?.length;i++){ for(var i = 0; i < immune?.length; i++){
if(immune[i].length > 0){ if(immune[i].length > 0){
tvs.push(immune[i]); tvs.push(immune[i]);
vs = vs.replace(immune[i], '') vs = vs.replace(immune[i], '')