Skip to content

Commit 30325bd

Browse files
author
Christian Aistleitner
committed
Add missing specification urls to AsciiSets
1 parent 558f977 commit 30325bd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

url/src/parser.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ pub const PATH_SEGMENT: &AsciiSet = &PATH.add(b'/').add(b'%');
4242
pub const SPECIAL_PATH_SEGMENT: &AsciiSet = &PATH_SEGMENT.add(b'\\');
4343

4444
/// https://url.spec.whatwg.org/#query-state
45+
/// https://url.spec.whatwg.org/#query-percent-encode-set
4546
pub const QUERY: &AsciiSet = &CONTROLS.add(b' ').add(b'"').add(b'#').add(b'<').add(b'>');
47+
/// https://url.spec.whatwg.org/#special-query-percent-encode-set
4648
pub const SPECIAL_QUERY: &AsciiSet = &QUERY.add(b'\'');
4749

4850
pub type ParseResult<T> = Result<T, ParseError>;

0 commit comments

Comments
 (0)