about summary refs log tree commit diff stats
path: root/src/types
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-02-19 11:55:06 +0100
committerbptato <nincsnevem662@gmail.com>2022-02-19 11:58:09 +0100
commit7fd9de65e4acfdbb71b284353043c19e2f152acd (patch)
tree2cb988ec79503197597ee493830600573e47748f /src/types
parent8efeab3d8770d0e5beaaa872a161d18b90d67658 (diff)
downloadchawan-7fd9de65e4acfdbb71b284353043c19e2f152acd.tar.gz
Fix not being able to load local files with ?, #, etc
Diffstat (limited to 'src/types')
-rw-r--r--src/types/url.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/types/url.nim b/src/types/url.nim
index d4c8b91c..447dafc8 100644
--- a/src/types/url.nim
+++ b/src/types/url.nim
@@ -1,4 +1,4 @@
-#See https://url.spec.whatwg.org/#url-parsing.
+# See https://url.spec.whatwg.org/#url-parsing.
 import strutils
 import tables
 import options
@@ -698,12 +698,12 @@ proc basicParseUrl*(input: string, base = none(Url), url: var Url = Url(), overr
           state = FRAGMENT_STATE
       elif has:
         #TODO If c is not a URL code point and not U+0025 (%), validation error.
-        #TOOD If c is U+0025 (%) and remaining does not start with two ASCII hex digits, validation error.
+        #TODO If c is U+0025 (%) and remaining does not start with two ASCII hex digits, validation error.
         buffer &= c
     of FRAGMENT_STATE:
       if has:
         #TODO If c is not a URL code point and not U+0025 (%), validation error.
-        #TOOD If c is U+0025 (%) and remaining does not start with two ASCII hex digits, validation error.
+        #TODO If c is U+0025 (%) and remaining does not start with two ASCII hex digits, validation error.
         url.fragment.get.percentEncode(c, FragmentPercentEncodeSet)
     inc pointer
   return url.some