Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add String.remove.

  • Loading branch information...
commit 2f1e49346bbb763ee78cfc69ade192e528fd4862 1 parent 3eae98e
@daithiocrualaoich authored
Showing with 5 additions and 0 deletions.
  1. +1 −0  .gitignore
  2. +4 −0 src/main/scala/com.gu.common/text/package.scala
View
1  .gitignore
@@ -12,3 +12,4 @@ logs
.classpath
.project
.settings
+.cache
View
4 src/main/scala/com.gu.common/text/package.scala
@@ -69,5 +69,9 @@ object `package` {
implicit def string2EscapeForURL(s: String) = new {
val escapeForURL = CodecFunctions encodeForPercent s
}
+
+ implicit def string2Remove(s: String) = new {
+ def remove(pattern: String): String = s.replace(pattern, "")
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.