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 Jan 20, 2025
1 parent ee5b88e commit 2a9ced5
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 2a9ced5

Please sign in to comment.