about summary refs log tree commit diff stats
path: root/src/css
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-07-28 20:50:51 +0200
committerbptato <nincsnevem662@gmail.com>2024-07-28 21:06:28 +0200
commit9653c35fb9a4398942ecb305835a95fbd87c433a (patch)
tree2db576e71cd89557592715d64ecb4fb4a46f8c66 /src/css
parentdbf2e0e831ebaf8a0e6f375a8f423f87280e7862 (diff)
downloadchawan-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.nim6
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: