From 730eda9f37fd3ced4a0c2143269764f93e43a5b7 Mon Sep 17 00:00:00 2001 From: embs Date: Wed, 12 Jul 2017 17:09:35 -0300 Subject: [PATCH] Make regex ending slightly smarter So we can match match words ending with chars that do not constitute words boundaries like stigm@ Closes #5 --- lib/language_filter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/language_filter.rb b/lib/language_filter.rb index e48b1d5..414ccf5 100644 --- a/lib/language_filter.rb +++ b/lib/language_filter.rb @@ -277,7 +277,7 @@ def end_regex if @creative_letters then CREATIVE_END_REGEX else - '\\b' + '(?=\b|\s|$)' end end end