diff options
author | bptato <nincsnevem662@gmail.com> | 2024-07-28 20:50:51 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-07-28 21:06:28 +0200 |
commit | 9653c35fb9a4398942ecb305835a95fbd87c433a (patch) | |
tree | 2db576e71cd89557592715d64ecb4fb4a46f8c66 /src/css | |
parent | dbf2e0e831ebaf8a0e6f375a8f423f87280e7862 (diff) | |
download | chawan-9653c35fb9a4398942ecb305835a95fbd87c433a.tar.gz |
buffer, pager, config: add meta-refresh + misc fixes
* buffer, pager, config: add meta-refresh value, which makes it possible to follow http-equiv=refresh META tags. * config: clean up redundant format mode parser * timeout: accept varargs for params to pass on to functions * pager: add "options" dict to JS gotoURL * twtstr: remove redundant startsWithNoCase
Diffstat (limited to 'src/css')
-rw-r--r-- | src/css/cssparser.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/css/cssparser.nim b/src/css/cssparser.nim index 0d71e6d0..1e56d11f 100644 --- a/src/css/cssparser.nim +++ b/src/css/cssparser.nim @@ -908,9 +908,9 @@ proc parseAnB*(state: var CSSParseState): Option[CSSAnB] = let tok2 = get_tok fail_non_signless_integer tok2, none(CSSAnB) return some((-1, -int(tok2.nvalue))) - elif tok.value.startsWithNoCase("n-"): + elif tok.value.startsWithIgnoreCase("n-"): return some((1, -parse_sub_int(tok.value, "n-".len))) - elif tok.value.startsWithNoCase("-n-"): + elif tok.value.startsWithIgnoreCase("-n-"): fail_plus return some((-1, -parse_sub_int(tok.value, "n-".len))) else: @@ -952,7 +952,7 @@ proc parseAnB*(state: var CSSParseState): Option[CSSAnB] = let tok2 = get_tok fail_non_signless_integer tok2, none(CSSAnB) return some((int(tok.nvalue), -int(tok2.nvalue))) - elif tok.unit.startsWithNoCase("n-"): + elif tok.unit.startsWithIgnoreCase("n-"): # <ndashdigit-dimension> return some((int(tok.nvalue), -parse_sub_int(tok.unit, "n-".len))) else: |