Skip to content

Commit

Permalink
Fix code formatting in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hlysine committed Jul 24, 2022
1 parent 02dab37 commit e948a57
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ const path = exactly`/`.maybe.captureAs`path`(
const query = exactly`?`.captureAs`query`.zeroOrMore.char;

// combining all the parts above
const regExp = lineStart.match(protocol).exactly`://`
const regExp = lineStart
.match(protocol)
.exactly`://`
.match(domain)
.maybe(port)
.maybe(path)
Expand Down

0 comments on commit e948a57

Please sign in to comment.