diff options
author | bptato <nincsnevem662@gmail.com> | 2022-12-14 10:39:39 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-12-14 10:39:39 +0100 |
commit | 03480fea95101cf1147c1e1a65c4e6fb457b1402 (patch) | |
tree | a0df53f52a65ae7cdecfeb83e8aa3c900579b665 /src/config | |
parent | 0f3577949819daa31fbf8cd943d634f49d35c498 (diff) | |
download | chawan-03480fea95101cf1147c1e1a65c4e6fb457b1402.tar.gz |
Fix search
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/config.nim | 3 |
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) = |