mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-19 17:52:21 +00:00
Read "clear … except" from the map only when it clears every other layer
"clear all flights except ships from the map" no longer offers to turn Ships on. Co-authored-by: Manjunath Paparaju <[email protected]>
This commit is contained in:
1 parent
038915bc0b
commit
6f959fc3cc
2 files changed
+2
-1
No files matched your search
@@ -313,7 +313,7 @@ export function normalizeLine(text, { isRequest = isPlainRequest } = {}) {
|
||||
// "clear" takes the whole map: "clear flights" would read as a place.
|
||||
const lower = bare.toLowerCase();
|
||||
return CLEAR_ALL.test(lower) ||
|
||||
/^clear (?:everything|all|every)\b.*\b(?:except|but|other than|apart from|besides|save for)\b/.test(
|
||||
/^clear (?:everything|all(?: the)?(?: other)?(?: layers?)?|every layer) (?:except|but|other than|apart from|besides|save for)\b/.test(
|
||||
lower,
|
||||
)
|
||||
? bare
|
||||
|
||||
Reference in new issue
Block a user