diff options
author | kerzum <kerzum@yandex-team.ru> | 2022-02-10 16:49:33 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:33 +0300 |
commit | 47a7e7b29636bfb2deb1df5f92363b3c75229c95 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/uri/parsefsm.rl6 | |
parent | 9a7232babfd763ccfe827bc70e82e0f50cfd8276 (diff) | |
download | ydb-47a7e7b29636bfb2deb1df5f92363b3c75229c95.tar.gz |
Restoring authorship annotation for <kerzum@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/uri/parsefsm.rl6')
-rw-r--r-- | library/cpp/uri/parsefsm.rl6 | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/uri/parsefsm.rl6 b/library/cpp/uri/parsefsm.rl6 index 6bc84bee819..70977236503 100644 --- a/library/cpp/uri/parsefsm.rl6 +++ b/library/cpp/uri/parsefsm.rl6 @@ -141,7 +141,7 @@ ext_ascii = (VALID - ascii) >{ REQ(fpc, FeatureEncodeExtendedASCII) }; ext_delims = ( "[" | "]" | "|" | "{" | "}" | "`" | "^" | "<" | ">" | ( ["\\] >act_req_enc_sql ) - ) >{ REQ(fpc, FeatureEncodeExtendedDelim) }; # " fix hilite + ) >{ REQ(fpc, FeatureEncodeExtendedDelim) }; # " fix hilite ext_space = " " >{ REQ(fpc, FeatureEncodeSpace) }; ext_cntrl = cntrl >{ REQ(fpc, FeatureEncodeCntrl) }; @@ -206,13 +206,13 @@ dec_octet = DIGIT+; IPv4address = dec_octet "." dec_octet "." dec_octet "." dec_octet; - # MOD: non-empty; will use host? + # MOD: non-empty; will use host? # reg-name = *( unreserved / pct-encoded / sub-delims ) - ### todo: allow ':' (need to fix grammar to disambiguate port) - achar = any - (0x00 .. 0x20) - '/' - '#' - '?' - ':' - '%'; - upperhalf = any - (0x00 .. 0x7F); - hostname = (((achar | pct_encoded)+) & (any* (alnum | upperhalf) any*)); - reg_name = hostname - IPv4address - IP_literal; + ### todo: allow ':' (need to fix grammar to disambiguate port) + achar = any - (0x00 .. 0x20) - '/' - '#' - '?' - ':' - '%'; + upperhalf = any - (0x00 .. 0x7F); + hostname = (((achar | pct_encoded)+) & (any* (alnum | upperhalf) any*)); + reg_name = hostname - IPv4address - IP_literal; # uses first-match-wins approach host = IP_literal | IPv4address | (reg_name - IPv4address); |