Skip to content

Commit

Permalink
trim non-breaking spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
henry0312 committed Jan 17, 2016
1 parent 6dc82d1 commit f02a8f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/netkeiba-scraper/Main.scala
Expand Up @@ -215,7 +215,7 @@ object RowExtractor {
Array(round.split(" ").head, fieldScore) ++
{ val di = dateInfo.split(" ")
di.take(2) :+ di.drop(2).mkString(" ") }).
map(_.filter(_ != '?').trim).
map(_.filter(_ != '?').replaceAll("(^\\h*)|(\\h*$)","")).
mkString(",").split(",")

val raceInfo = str2raceInfo(raceInfoStr)
Expand Down

0 comments on commit f02a8f0

Please sign in to comment.