Skip to content

Commit

Permalink
Merge pull request #52 from aleksasiriski/as/fix/index-reg-exp
Browse files Browse the repository at this point in the history
fix(regexp): polj index
  • Loading branch information
aleksasiriski authored Dec 15, 2024
2 parents b23536b + 04f5708 commit 5f5dc03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/utils/regexp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export const nameRegExp = /^[a-zA-ZčČćĆdžDŽđĐšŠžŽ]+(?:(?:\s|-)[a-zA-Z
export const nameRegExpMsg =
'String must be one word or two words with space or dash (-) in between';

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})?$/;
export const indexRegExpMsg =
'String must be in format: 1-4 numbers, optional single character and 2 or 4 numbers (year)';

Expand Down

0 comments on commit 5f5dc03

Please sign in to comment.