From 2b3850ef982f9d37b88b84edf4410e7a762672a7 Mon Sep 17 00:00:00 2001 From: Ian Alden Date: Sat, 20 Jan 2024 10:20:31 -0700 Subject: [PATCH 1/2] Fix the galaxy map regex --- src/triggers/galaxy-map/triggers.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/triggers/galaxy-map/triggers.json b/src/triggers/galaxy-map/triggers.json index 8d803b9..92301bf 100644 --- a/src/triggers/galaxy-map/triggers.json +++ b/src/triggers/galaxy-map/triggers.json @@ -181,7 +181,7 @@ "name": "system-line", "patterns": [ { - "pattern": "^(.*) \\( ([0-9-]+), ([0-9-]+) \\)$", + "pattern": "^(.*)\s+\(\s*([0-9-]+), ([0-9-]+)\s*\)$", "type": "regex" } ] From 5847f557ad6acb926481233a8a8fd146bddfa0b0 Mon Sep 17 00:00:00 2001 From: Ian Alden Date: Sat, 20 Jan 2024 10:27:36 -0700 Subject: [PATCH 2/2] Fix terminating chars --- src/triggers/galaxy-map/triggers.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/triggers/galaxy-map/triggers.json b/src/triggers/galaxy-map/triggers.json index 92301bf..c13b5e5 100644 --- a/src/triggers/galaxy-map/triggers.json +++ b/src/triggers/galaxy-map/triggers.json @@ -181,7 +181,7 @@ "name": "system-line", "patterns": [ { - "pattern": "^(.*)\s+\(\s*([0-9-]+), ([0-9-]+)\s*\)$", + "pattern": "^(.*)\\s+\\(\\s*([0-9-]+), ([0-9-]+)\\s*\\)$", "type": "regex" } ]