aboutsummaryrefslogtreecommitdiffstats
path: root/scalding/src
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2018-08-15 22:43:10 -0700
committerBryan Newbold <bnewbold@archive.org>2018-08-15 22:43:10 -0700
commit2277c2f793a007fa3a347af23fca35f4a3eafeef (patch)
treea80cfc82286e0bf5ed709b7c8bea4d45d3dbc49e /scalding/src
parent3f668933d71b82555e89a3bfefe83039ff7ddbfb (diff)
downloadsandcrawler-2277c2f793a007fa3a347af23fca35f4a3eafeef.tar.gz
sandcrawler-2277c2f793a007fa3a347af23fca35f4a3eafeef.zip
do strip periods ('.')
Diffstat (limited to 'scalding/src')
-rw-r--r--scalding/src/main/scala/sandcrawler/StringUtilities.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/scalding/src/main/scala/sandcrawler/StringUtilities.scala b/scalding/src/main/scala/sandcrawler/StringUtilities.scala
index 6eeff7e..2745875 100644
--- a/scalding/src/main/scala/sandcrawler/StringUtilities.scala
+++ b/scalding/src/main/scala/sandcrawler/StringUtilities.scala
@@ -36,7 +36,7 @@ object StringUtilities {
// Source: https://stackoverflow.com/a/30076541/631051
def removePunctuation(s: String) : String = {
- s.replaceAll("""[\p{Punct}&&[^.]]""", "")
+ s.replaceAll("""[\p{Punct}]""", "")
}
// Adapted from: https://stackoverflow.com/a/16018452/631051