From d59d0dbe860f1feb9b7fc3a2e4b710237934bbcd Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Mon, 14 Dec 2015 16:28:02 -0500 Subject: [PATCH] Space, not separator. --- src/Range.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Range.hs b/src/Range.hs index 1f052df75..252803508 100644 --- a/src/Range.hs +++ b/src/Range.hs @@ -30,7 +30,7 @@ rangesAndWordsFrom startIndex string = parse predicate string = case span predicate string of ([], _) -> Nothing (parsed, rest) -> Just (parsed, rest) - isWordOrSeparator c = Char.isSeparator c || isWord c + isWordOrSeparator c = Char.isSpace c || isWord c -- | Is this a word character? -- | Word characters are defined as in [Ruby’s `\p{Word}` syntax](http://ruby-doc.org/core-2.1.1/Regexp.html#class-Regexp-label-Character+Properties), i.e.: -- | > A member of one of the following Unicode general category _Letter_, _Mark_, _Number_, _Connector_Punctuation_