summaryrefslogtreecommitdiff
path: root/lib/html_word_diff.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/html_word_diff.rb')
-rw-r--r--lib/html_word_diff.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/html_word_diff.rb b/lib/html_word_diff.rb
index aa0cb866..41556eb0 100644
--- a/lib/html_word_diff.rb
+++ b/lib/html_word_diff.rb
@@ -49,7 +49,7 @@ module HtmlWordDiff
49 end 49 end
50 50
51 def self.tokenize(html) 51 def self.tokenize(html)
52 html.to_s.scan(TOKEN_REGEXP) 52 html.to_s.gsub(/\r\n?/, "\n").scan(TOKEN_REGEXP)
53 end 53 end
54 54
55 def self.tag_token?(token) 55 def self.tag_token?(token)