Skip to content

Commit

Permalink
Explicitly convert a path segment to a string to avoid the issue in [s…
Browse files Browse the repository at this point in the history
  • Loading branch information
chisandrei committed Jun 1, 2021
1 parent e0af1dc commit e6aea1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lepiter-GitHub/LeGitHubIssueUrlValidator.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ LeGitHubIssueUrlValidator >> validate [
anUrl pathSegments size = 4 ifFalse: [ isValid := false. ^ self ].
anUrl pathSegments third = 'issues' ifFalse: [ isValid := false. ^ self ].

anIssueNumber := (NumberParser on: anUrl pathSegments fourth)
anIssueNumber := (NumberParser on: anUrl pathSegments fourth asString)
failBlock: [ isValid := false. ^ self ];
nextNumber.
anIssueNumber asString = anUrl pathSegments fourth ifFalse: [ isValid := false ].
Expand Down

0 comments on commit e6aea1d

Please sign in to comment.