mirror of
https://github.com/9001/copyparty.git
synced 2026-06-20 21:22:26 -06:00
more search regex changes to ignore \"
This commit is contained in:
parent
3c3baa0572
commit
4cf3f27a6e
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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], '')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue