Skip to content
Snippets Groups Projects
Commit 6a98e67a authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #13671 TIME 0:15 add regex validator path

parent ee0f7b10
No related branches found
No related tags found
No related merge requests found
import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { FormBuilder, FormGroup, Validators, ValidatorFn } from '@angular/forms';
import { NotificationService } from '../../../service/notification/notification.service';
import { tap } from 'rxjs/internal/operators/tap';
import { LANG } from '../../translate.component';
......@@ -23,8 +23,10 @@ export class DocserversComponent implements OnInit {
public http: HttpClient,
private installerService: InstallerService
) {
const valPath: ValidatorFn[] = [Validators.pattern(/^[^\'\<\>\|\*\:\?]+$/), Validators.required];
this.stepFormGroup = this._formBuilder.group({
docserversPath: ['/opt/maarch/docservers/', Validators.required],
docserversPath: ['/opt/maarch/docservers/', valPath],
stateStep: ['', Validators.required],
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment