Skip to content

Commit

Permalink
Revert generate-mask-expression.ts to use default expr
Browse files Browse the repository at this point in the history
  • Loading branch information
rikusen0335 authored Jan 5, 2024
1 parent e69d7ae commit 2d1aec4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function generateMaskExpression({
pseudoMinuses?: readonly string[];
}): MaskitoMask {
const computedPrefix = computeAllOptionalCharsRegExp(prefix);
const digit = '[0-9][0-9]';
const digit = '\\d';
const optionalMinus = isNegativeAllowed
? `[${CHAR_MINUS}${pseudoMinuses.map(x => `\\${x}`).join('')}]?`
: '';
Expand Down

0 comments on commit 2d1aec4

Please sign in to comment.