Skip to content

Commit

Permalink
Merge pull request #13 from svenvc/master
Browse files Browse the repository at this point in the history
Update to latest upstream Zinc
  • Loading branch information
svenvc authored Apr 18, 2024
2 parents 6895413 + 6ba48fd commit 1a89da3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
smalltalk: [ Pharo64-11, Pharo64-10 , Pharo64-9.0 , Pharo64-8.0 , Pharo64-7.0 ]
smalltalk: [ Pharo64-12, Pharo64-11, Pharo64-10 , Pharo64-9.0 , Pharo64-8.0 , Pharo64-7.0 ]
name: ${{ matrix.smalltalk }}
steps:
- uses: actions/checkout@v3
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
testing
hasHeaders

^ headers isNotNil and: [ self headers isNotEmpty ]
^ headers isNotNil and: [ self headers isEmpty not ]
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ parseFrom: string defaultScheme: defaultScheme
ifTrue: [
self fragment: (self decodePercent: (string copyFrom: index + 1 to: end)).
end := index - 1 ].
(index := string indexOf: $?) > 0
((index := (string indexOf: $?)) between: 1 and: end)
ifTrue: [
self query: (self parseQueryFrom: (ReadStream on: string from: index + 1 to: end)).
end := index - 1 ].
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
*Zinc-Tests
testFragmentWithQuestionMark

| urlString url |
urlString := 'http://www.example.com/#fragment?with?question?mark'.
url := urlString asUrl.
self assert: url segments isNil.
self deny: url hasQuery.
self assert: url asString equals: urlString

0 comments on commit 1a89da3

Please sign in to comment.