Skip to content

Commit 60f20f3

Browse files
authored
Merge pull request #16 from ail-project/fix-make-host-opt
fix!: make host optional
2 parents 01601fe + 5851e5e commit 60f20f3

File tree

5 files changed

+76
-55
lines changed

5 files changed

+76
-55
lines changed

faup/src/grammar.pest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
url = ${ SOI ~ scheme ~ "://" ~ userinfo? ~ host ~ (":" ~ port)? ~ path? ~ query? ~ fragment? ~ EOI }
1+
url = ${ SOI ~ scheme ~ "://" ~ userinfo? ~ host? ~ (":" ~ port)? ~ path? ~ query? ~ fragment? ~ EOI }
22
scheme = { ASCII_ALPHANUMERIC+ }
33

44
username = ${ (!(":" | "@" | "/" | "?" | "#" | "[" | "]" | WHITE_SPACE) ~ ANY)+ }

0 commit comments

Comments
 (0)