mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: allow ! only with bools
This commit is contained in:
committed by
Alexander Medvednikov
parent
c01edc650d
commit
f1d5f8e2bf
@@ -513,7 +513,7 @@ fn _parse(rawurl string, via_request bool) ?URL {
|
||||
}
|
||||
}
|
||||
|
||||
if (url.scheme != '' || !via_request && !rest.starts_with('///')) && rest.starts_with('//') {
|
||||
if ((url.scheme != '' || !via_request) && !rest.starts_with('///')) && rest.starts_with('//') {
|
||||
parts := split(rest.right(2), '/', false)
|
||||
authority := parts[0]
|
||||
rest = parts[1]
|
||||
|
||||
Reference in New Issue
Block a user