Skip to content

Commit

Permalink
fix: or-2025 allow kbo nr to start with 1
Browse files Browse the repository at this point in the history
  • Loading branch information
koenmetsu committed Jan 5, 2024
1 parent 593d3b8 commit d642391
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export function isKboNumber(control: AbstractControl): { [key: string]: boolean
return { 'invalidKboNumber': true };
}

let pattern = /^0(([0-9]){3}\.?){2}([0-9]){3}$/;
let pattern = /^[01](([0-9]){3}\.?){2}([0-9]){3}$/;
let stringvalue = control.value.toString();

if (!stringvalue.match(pattern))
Expand Down

0 comments on commit d642391

Please sign in to comment.