Skip to content

Commit

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

0 comments on commit 96fc0dc

Please sign in to comment.