]> cat aescling's git repositories - mastodon.git/commit
Remove usernames and hashtags from language detection (#3503)
authorMatt Jankowski <mjankowski@thoughtbot.com>
Thu, 1 Jun 2017 13:29:14 +0000 (09:29 -0400)
committerGitHub <noreply@github.com>
Thu, 1 Jun 2017 13:29:14 +0000 (09:29 -0400)
commitd010e270e613f6299397601289158bd2acedbe8e
tree6bc639705b9e53be8efd6ff3b7fe791b5a9e13ad
parentd1e08bd38c029f0b47dfd2f3ba61ca5bb3e414b8
Remove usernames and hashtags from language detection (#3503)

* Add failing specs for hashtag and username extraction in language detector

* Remove usernames and hashtags from text before language detection

* Handle multiple instances of special case, and reduce whitespace
app/lib/language_detector.rb
spec/lib/language_detector_spec.rb