mirror of
https://github.com/9001/copyparty.git
synced 2026-06-19 12:42:51 -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 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 0 2.5em 0 0;
|
||||
padding: .7em;
|
||||
margin: 0;
|
||||
padding: .7em 3em .7em .7em;
|
||||
background: var(--ttlbar);
|
||||
font-size: large;
|
||||
font-weight: bold;
|
||||
|
|
|
|||
|
|
@ -6788,8 +6788,8 @@ var search_ui = (function () {
|
|||
function onlyUnique(value, index, array) {
|
||||
return array.indexOf(value) === index && value?.length > 0;
|
||||
}
|
||||
var immune = vs.match(/(([^\s]*|)"[^"]*"([^\s]*|))/)?.filter(onlyUnique)
|
||||
for(var i=0; i<immune?.length;i++){
|
||||
var immune = vs.match(/\B("(?:[^"]|\\")*[^\\]")\B/g)?.filter(onlyUnique)
|
||||
for(var i = 0; i < immune?.length; i++){
|
||||
if(immune[i].length > 0){
|
||||
tvs.push(immune[i]);
|
||||
vs = vs.replace(immune[i], '')
|
||||
|
|
|
|||
Loading…
Reference in a new issue