Permalink
Browse files

fix regex character filter in VersionParts

  • Loading branch information...
harrah committed Mar 18, 2013
1 parent e69df1a commit 28b12465dfc10fa0cdcf9cd6ebbb2f292ac4a460
Showing with 1 addition and 1 deletion.
  1. +1 −1 launch/src/test/scala/VersionParts.scala
@@ -57,7 +57,7 @@ object VersionParts extends Properties("VersionParts")
private[this] def normS(s: String): String =
{
val filtered = s filter validChar
- if(s.isEmpty) "q" else s
+ if(filtered.isEmpty) "q" else filtered
}
// strip whitespace and characters not supported by Pattern

0 comments on commit 28b1246

Please sign in to comment.