forked from MapComplete/MapComplete
Better bookcase quests
This commit is contained in:
parent
1ef2459d54
commit
49cab66a72
11 changed files with 247 additions and 63 deletions
|
@ -22,8 +22,10 @@ export class Regex implements TagsFilter {
|
|||
// Any is allowed
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
return tag.v.match(this._r).length > 0;
|
||||
const matchCount =tag.v.match(this._r)?.length;
|
||||
return (matchCount ?? 0) > 0;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue