We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b23536b + 04f5708 commit 5f5dc03Copy full SHA for 5f5dc03
src/lib/utils/regexp.ts
@@ -2,7 +2,7 @@ export const nameRegExp = /^[a-zA-ZčČćĆdžDŽđĐšŠžŽ]+(?:(?:\s|-)[a-zA-Z
2
export const nameRegExpMsg =
3
'String must be one word or two words with space or dash (-) in between';
4
5
-export const indexRegExp = /^\d{1,4}[a-zA-Z]?\/(?:\d{2}|\d{4})$/;
+export const indexRegExp = /^\d{1,4}[a-zA-Z]?\/(?:\d{2}|\d{4})(?:[A-Z]{1,3})?$/;
6
export const indexRegExpMsg =
7
'String must be in format: 1-4 numbers, optional single character and 2 or 4 numbers (year)';
8
0 commit comments