Skip to content

Commit

Permalink
Update image regex in UI. (#806)
Browse files Browse the repository at this point in the history
The regex should also accept - and _.

This fixes the issue noted in #785.
  • Loading branch information
brndnmtthws authored Feb 23, 2017
1 parent 378cbfc commit 5f12f88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/ui/models/JobForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,9 @@ export default class JobForm {
syncContainerName(event, field) {
let value = event.target.value
if (value) {
if (!value.match(/^[a-z0-9\/\.:]+$/)) {
if (!value.match(/^[-_a-z0-9\/\.:]+$/)) {
field.valid = false
field.error = field.label + ' must match regex /^[a-z0-9\/\.:]+$/'
field.error = field.label + ' must match regex /^[-_a-z0-9\/\.:]+$/'
} else {
field.valid = true
field.error = ''
Expand Down

0 comments on commit 5f12f88

Please sign in to comment.