about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-12-14 10:39:39 +0100
committerbptato <nincsnevem662@gmail.com>2022-12-14 10:39:39 +0100
commit03480fea95101cf1147c1e1a65c4e6fb457b1402 (patch)
treea0df53f52a65ae7cdecfeb83e8aa3c900579b665 /src/config
parent0f3577949819daa31fbf8cd943d634f49d35c498 (diff)
downloadchawan-03480fea95101cf1147c1e1a65c4e6fb457b1402.tar.gz
Fix search
Diffstat (limited to 'src/config')
-rw-r--r--src/config/config.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/config/config.nim b/src/config/config.nim
index 220b3948..4ab2d49b 100644
--- a/src/config/config.nim
+++ b/src/config/config.nim
@@ -368,8 +368,9 @@ proc parseConfig(config: Config, dir: string, t: TomlValue) =
           for k, v in v:
             case k
             of "match": rule.match = v.s
-            of "substitute": rule.subst = v.s
+            of "substitute-url": rule.subst = v.s
           if rule.match != "":
+            assert rule.subst != "", "Unspecified substitution for rule " & rule.match
             config.omnirules.add(rule)
 
 proc parseConfig(config: Config, dir: string, stream: Stream) =