Skip to content

Commit

Permalink
Merge pull request #535 from carroux/periods_in_job_names
Browse files Browse the repository at this point in the history
Allow periods in job names
  • Loading branch information
brndnmtthws committed Sep 10, 2015
2 parents 9de3529 + ad1a530 commit dded172
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import scala.collection.mutable.ListBuffer
*/
object JobUtils {

val jobNamePattern = """([\w\s#_-]+)""".r
val jobNamePattern = """([\w\s\.#_-]+)""".r
val stats = new mutable.HashMap[String, DescriptiveStatistics]()
val maxValues = 100
//The object mapper, which is, according to the docs, Threadsafe once configured.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,10 @@ class JobUtilsSpec extends SpecificationWithJUnit with Mockito {
scheduledJobWithArguments.command.toString must_== commandWithArguments
dependencyJobWithArguments.command.toString must_== commandWithArguments
}

"Accepts a job name with periods" in {
val jobName = "sample.name"

JobUtils.isValidJobName(jobName)
}
}

0 comments on commit dded172

Please sign in to comment.