Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix allow whitespaces check in Reader.read(until...) (#41)
  • Loading branch information
labradon authored and JohnSundell committed Jan 24, 2020
1 parent 4a4acd4 commit 878fd89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Ink/Internal/Reader.swift
Expand Up @@ -47,7 +47,7 @@ extension Reader {
return result
}

if !allowWhitespace, currentCharacter.isNewline {
if !allowWhitespace, currentCharacter.isSameLineWhitespace {
break
}

Expand Down

0 comments on commit 878fd89

Please sign in to comment.