Fixes after review

This commit is contained in:
PiotrP
2018-11-13 15:10:24 -08:00
parent 0e35d1c7f6
commit 618f966361
6 changed files with 27 additions and 31 deletions

View File

@ -1,5 +1,8 @@
export class Validator {
static projectNameValidator(projectName) {
import { Injectable } from "@angular/core";
@Injectable()
export class ProjectNameValidator {
get(projectName) {
var pattern = new RegExp(/[~`!#$%\^&*+=\[\]\\';,/{}|\\":<>\?]/);
if(!pattern.test(projectName.value)) {