Skip to content

Commit ffb876d

Browse files
authored
Merge pull request #525 from bcgov/oleks
DSS-324: Takedown Request and Non Compliance notices issues
2 parents fbfb9c4 + 277abce commit ffb876d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frontend/src/app/common/consts/validators.const.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function validateUrl(): ValidatorFn {
88
return null;
99
}
1010

11-
const urlRegex = new RegExp(/\b(?:[Hh][Tt][Tt][Pp][Ss]?):\/\/[-A-Za-z0-9+&@#\/%?=~_|!:,.;]*[-A-Za-z0-9+&@#\/%=~_|]/);
11+
const urlRegex = new RegExp(/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/);
1212
const validUrl = urlRegex.test(url.toLowerCase());
1313

1414
return validUrl ? null : { invalidUrl: true };

frontend/src/app/features/components/delisting-request/delisting-request.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export class DelistingRequestComponent implements OnInit {
183183

184184
private initForm(): void {
185185
this.myForm = this.fb.group({
186-
platformId: [0, Validators.required],
186+
platformId: [null, Validators.required],
187187
listingId: [''],
188188
listingUrl: ['', [Validators.required, validateUrl()]],
189189
sendCopy: [true],

0 commit comments

Comments
 (0)