Skip to content

Commit 5bc0beb

Browse files
authored
Added dash, German and French quotation marks
1 parent eae47c9 commit 5bc0beb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core/facets/string/words.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def words
1515
# => ["Slowly", "grudgingly", "he", "said", "This", "has", "to", "stop"]
1616
def words_without_punctuation
1717
s = self.dup
18-
s.gsub!(/[.?¿¡…!,::;"。?!、‘“”〈〉《》,\/\[\]]/, ' ')
18+
s.gsub!(/[.?¿¡…!,::;"。?!、‘“”„«»〈〉《》,\/\[\]]/, ' ')
1919
s.gsub!('- ', ' ')
2020
s.squeeze!(" ")
2121
s.strip.split(" ")

0 commit comments

Comments
 (0)