Skip to content

Commit

Permalink
fix: regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
matijakljajic committed Dec 13, 2024
1 parent cab3bd2 commit 3f8e600
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
@@ -1,4 +1,4 @@
export const nameRegExp = /^\w+(?:\s\w+)?$/;
export const nameRegExp = /^[a-zA-ZčČćĆdžDŽđĐšŠžŽ]+(?:\s[a-zA-ZčČćĆdžDŽđĐšŠžŽ])*$/;
export const nameRegExpMsg = 'String must be one word or two words with space in between';

export const indexRegExp = /^\d{1,4}[a-zA-Z]?\/(?:\d{2}|\d{4})$/;
Expand Down

0 comments on commit 3f8e600

Please sign in to comment.