lib/text_rank/tokenizer/whitespace.rb in text_rank-1.2.3 vs lib/text_rank/tokenizer/whitespace.rb in text_rank-1.2.4
- old
+ new
@@ -1,11 +1,14 @@
module TextRank
module Tokenizer
+
##
# A tokenizer regex that preserves single whitespace characters as a token. Use
# this if one or more of your TokenFilter classes need whitespace in order to
# make decisions.
##
- Whitespace = %r{\s}
+ # rubocop:disable Naming/ConstantName
+ Whitespace = /\s/
+ # rubocop:enable Naming/ConstantName
end
end