mirror of
https://github.com/louislam/dockge.git
synced 2025-08-09 15:15:11 +02:00
Fix #19
This commit is contained in:
@ -72,9 +72,9 @@ export class Stack {
|
||||
}
|
||||
|
||||
validate() {
|
||||
// Check name, allows [a-z][A-Z][0-9] _ - only
|
||||
if (!this.name.match(/^[a-zA-Z0-9_-]+$/)) {
|
||||
throw new ValidationError("Stack name can only contain [a-z][A-Z][0-9] _ - only");
|
||||
// Check name, allows [a-z][0-9] _ - only
|
||||
if (!this.name.match(/^[a-z0-9_-]+$/)) {
|
||||
throw new ValidationError("Stack name can only contain [a-z][0-9] _ - only");
|
||||
}
|
||||
|
||||
// Check YAML format
|
||||
|
Reference in New Issue
Block a user