Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cdelaunay committed Feb 12, 2024
1 parent 96fc0dc commit 9445990
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ parseFrom: string defaultScheme: defaultScheme
| start end index fragmentIndex|
start := 1.
end := string size.
(fragmentIndex := string indexOf: $#) > 0
fragmentIndex := string indexOf: $#.
(fragmentIndex) > 0
ifTrue: [
self fragment: (self decodePercent: (string copyFrom: fragmentIndex + 1 to: end)).
end := fragmentIndex - 1 ].
((index := string indexOf: $?) > 0 and: [ index < fragmentIndex ])
((index := (string copyFrom: 1 to: end) indexOf: $?) > 0)
ifTrue: [
self query: (self parseQueryFrom: (ReadStream on: string from: index + 1 to: end)).
end := index - 1 ].
Expand Down

0 comments on commit 9445990

Please sign in to comment.