Skip to content

Commit

Permalink
Merge pull request #129 from vonbecmann/patch-1
Browse files Browse the repository at this point in the history
use allButFirst
  • Loading branch information
svenvc authored Nov 13, 2023
2 parents 37b5ede + b1b44ce commit a9f195e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ testing
isInDomain: urlObject
| domain |
domain := (self domain beginsWith: '.')
ifTrue: [ self domain copyFrom: 2 to: self domain size ]
ifTrue: [ self domain allButFirst ]
ifFalse: [ self domain ].
^ urlObject host includesSubstring: domain
^ urlObject host includesSubstring: domain

0 comments on commit a9f195e

Please sign in to comment.