mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-29 10:00:08 +00:00
cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
7505096dda
commit
d3c2832f8f
@ -360,7 +360,6 @@ module.BaseStore = {
|
||||
// skip metadata paths...
|
||||
if(p.includes('*')){
|
||||
return res }
|
||||
// XXX HIDE
|
||||
var m = [...p.matchAll(pattern)]
|
||||
m.length > 0
|
||||
&& (!all ?
|
||||
@ -368,16 +367,10 @@ module.BaseStore = {
|
||||
m.reduce(function(res, m){
|
||||
return res === false ?
|
||||
res
|
||||
// XXX if we are using a partial pattern this is wrong...
|
||||
// i.e. something like 'x*' (TEST)
|
||||
: !/(^\.|[\\\/]\.)/.test(m[1])
|
||||
}, true)
|
||||
: true)
|
||||
&& (m = m[0])
|
||||
/*/
|
||||
var m = p.match(pattern)
|
||||
m
|
||||
//*/
|
||||
&& (!strict
|
||||
|| m[0] == p)
|
||||
&& res.add(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user