From d48aa61fd8e3595a8ae90cfacc9f35318acbe8d4 Mon Sep 17 00:00:00 2001 From: bptato Date: Mon, 29 May 2023 01:29:53 +0200 Subject: config: fix omnirules Rename variable so it's mapped properly... --- src/config/config.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/config/config.nim') diff --git a/src/config/config.nim b/src/config/config.nim index d2650a2e..5817bdc2 100644 --- a/src/config/config.nim +++ b/src/config/config.nim @@ -101,7 +101,7 @@ type network*: NetworkConfig display*: DisplayConfig siteconf: seq[StaticSiteConfig] - omnirules: seq[StaticOmniRule] + omnirule: seq[StaticOmniRule] page*: ActionMap line*: ActionMap @@ -170,7 +170,7 @@ proc getSiteConfig*(config: Config, jsctx: JSContext): seq[SiteConfig] = result.add(conf) proc getOmniRules*(config: Config, jsctx: JSContext): seq[OmniRule] = - for rule in config.omnirules: + for rule in config.omnirule: let re = compileRegex(rule.match, 0) var conf = OmniRule( match: re.get @@ -462,7 +462,7 @@ proc parseConfig(config: Config, dir: string, t: TomlValue) = config.parseConfig(dir, staticRead(dir / s)) else: config.parseConfig(dir, newFileStream(dir / s)) - #TODO: for omnirules/siteconf, check if substitution rules are specified? + #TODO: for omnirule/siteconf, check if substitution rules are specified? proc parseConfig(config: Config, dir: string, stream: Stream, name = "") = let toml = parseToml(stream, dir / name) -- cgit 1.4.1-2-gfad0