mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-27 22:59:19 +00:00
Allow ':' in project names. Fixes https://github.com/GNS3/gns3-gui/issues/3686
This commit is contained in:
parent
ee5b88e19a
commit
2a9ced5cbd
@ -3,7 +3,7 @@ import { Injectable } from '@angular/core';
|
||||
@Injectable()
|
||||
export class ProjectNameValidator {
|
||||
get(projectName) {
|
||||
var pattern = new RegExp(/[~`!#$%\^&*+=\[\]\\';,/{}|\\":<>\?]/);
|
||||
var pattern = new RegExp(/[~`!#$%\^&*+=\[\]\\';,/{}|\\"<>\?]/);
|
||||
|
||||
if (!pattern.test(projectName.value)) {
|
||||
return null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user