aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/uri/parsefsm.rl6
diff options
context:
space:
mode:
authorkerzum <kerzum@yandex-team.ru>2022-02-10 16:49:33 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:33 +0300
commit9a7232babfd763ccfe827bc70e82e0f50cfd8276 (patch)
treea39808b7482c4711a80f799a7281adb36d76a13a /library/cpp/uri/parsefsm.rl6
parent0e68ae909d3b76a5a001a07880eb0010dec6b2ea (diff)
downloadydb-9a7232babfd763ccfe827bc70e82e0f50cfd8276.tar.gz
Restoring authorship annotation for <kerzum@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/uri/parsefsm.rl6')
-rw-r--r--library/cpp/uri/parsefsm.rl614
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/uri/parsefsm.rl6 b/library/cpp/uri/parsefsm.rl6
index 70977236503..6bc84bee819 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);