Skip to content

Commit 5f5dc03

Browse files
Merge pull request #52 from aleksasiriski/as/fix/index-reg-exp
fix(regexp): polj index
2 parents b23536b + 04f5708 commit 5f5dc03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/utils/regexp.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export const nameRegExp = /^[a-zA-ZčČćĆdžDŽđĐšŠžŽ]+(?:(?:\s|-)[a-zA-Z
22
export const nameRegExpMsg =
33
'String must be one word or two words with space or dash (-) in between';
44

5-
export const indexRegExp = /^\d{1,4}[a-zA-Z]?\/(?:\d{2}|\d{4})$/;
5+
export const indexRegExp = /^\d{1,4}[a-zA-Z]?\/(?:\d{2}|\d{4})(?:[A-Z]{1,3})?$/;
66
export const indexRegExpMsg =
77
'String must be in format: 1-4 numbers, optional single character and 2 or 4 numbers (year)';
88

0 commit comments

Comments
 (0)