From 2a9ced5cbd7ee0292dcd45f23e2be656eeac6778 Mon Sep 17 00:00:00 2001 From: grossmj Date: Mon, 30 Dec 2024 16:26:51 +0700 Subject: [PATCH] Allow ':' in project names. Fixes https://github.com/GNS3/gns3-gui/issues/3686 --- src/app/components/projects/models/projectNameValidator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/projects/models/projectNameValidator.ts b/src/app/components/projects/models/projectNameValidator.ts index 6bf3efc36..cc6b72b88 100644 --- a/src/app/components/projects/models/projectNameValidator.ts +++ b/src/app/components/projects/models/projectNameValidator.ts @@ -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;