Skip to content

Commit

Permalink
Allow 0 in beneficiary names (#918)
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodyowl authored Sep 30, 2024
1 parent 1ea319d commit 6fd01bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/banking/src/utils/validations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const validateBeneficiaryName: Validator<string> = value => {

// Matches all unicode letters, spaces, dashes, apostrophes, commas, and single quotes
const isValid = value.match(
/^(?:[A-Za-zÀ-ÖÙ-öù-ƿDŽ-ʯʹ-ʽΈ-ΊΎ-ΡΣ-ҁҊ-Ֆա-ևႠ-Ⴥა-ჺᄀ-፜፩-ᎏᵫ-ᶚḀ-῾ⴀ-ⴥ⺀-⿕ぁ-ゖゝ-ㇿ㋿-鿯鿿-ꒌꙀ-ꙮꚀ-ꚙꜦ-ꞇꞍ-ꞿꥠ-ꥼA-Za-z.]| |'|-|Ά|Ό|,|[1-9])*$/,
/^(?:[A-Za-zÀ-ÖÙ-öù-ƿDŽ-ʯʹ-ʽΈ-ΊΎ-ΡΣ-ҁҊ-Ֆա-ևႠ-Ⴥა-ჺᄀ-፜፩-ᎏᵫ-ᶚḀ-῾ⴀ-ⴥ⺀-⿕ぁ-ゖゝ-ㇿ㋿-鿯鿿-ꒌꙀ-ꙮꚀ-ꚙꜦ-ꞇꞍ-ꞿꥠ-ꥼA-Za-z.]| |'|-|Ά|Ό|,|[0-9])*$/,
);

if (!isValid) {
Expand Down

0 comments on commit 6fd01bc

Please sign in to comment.