Skip to content

Commit

Permalink
Allow ':' in project names. Fixes GNS3/gns3-gui#3686
Browse files Browse the repository at this point in the history
  • Loading branch information
grossmj committed Dec 30, 2024
1 parent c24517d commit 7b633c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/projects/models/projectNameValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7b633c2

Please sign in to comment.