fix wrong CRLF grapheme

This commit is contained in:
jw2013
2014-11-08 12:45:41 -08:00
parent e18c16c796
commit 3dd9df184e
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -208,8 +208,8 @@ defmodule String.Graphemes do
end
# Don't break CRLF
def next_grapheme(<< ?\n, ?\r, rest :: binary >>) do
{"\n\r", rest}
def next_grapheme(<< ?\r, ?\n, rest :: binary >>) do
{"\r\n", rest}
end
# Break on control