mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-05-13 14:03:23 +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()
|
@Injectable()
|
||||||
export class ProjectNameValidator {
|
export class ProjectNameValidator {
|
||||||
get(projectName) {
|
get(projectName) {
|
||||||
var pattern = new RegExp(/[~`!#$%\^&*+=\[\]\\';,/{}|\\":<>\?]/);
|
var pattern = new RegExp(/[~`!#$%\^&*+=\[\]\\';,/{}|\\"<>\?]/);
|
||||||
|
|
||||||
if (!pattern.test(projectName.value)) {
|
if (!pattern.test(projectName.value)) {
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user