Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
}
}