Skip to content

Commit

Permalink
Fixing regex for hdfs urls
Browse files Browse the repository at this point in the history
  • Loading branch information
ecurtin authored and Emily Curtin committed Feb 15, 2018
1 parent d4422e4 commit a1975e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ object SparkFuncs {
}

private def extractHDFSuri(str: String): Option[String] = {
val regx = """hdfs://(hdfs:\d+)""".r.unanchored
val regx = """hdfs://(\S+:\d+)""".r.unanchored
str match {
case regx(uri) => Some(uri)
case _ => None
Expand Down

0 comments on commit a1975e5

Please sign in to comment.