Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(kit): Number broken mask if decimalSeparator is a dot #69

Merged
merged 1 commit into from
Jan 20, 2023

Conversation

nsbarsukov
Copy link
Member

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows Conventional Commits
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Refactoring
  • Code style update
  • Build or CI related changes
  • Documentation content changes

What is the current behavior?

Closes #68

Does this PR introduce a breaking change?

  • Yes
  • No

@@ -55,80 +55,6 @@ describe('Number | Basic', () => {
});
});

describe('Decimal separator (symbol used to separate the integer part from the fractional part)', () => {
it('accepts comma (as the last character)', () => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is moved to number-decimal-separator.cy.ts

const integerPart = `[${digit}${thousandSeparator}]*`;
const decimalPart = `(${decimalSeparator}${digit}{0,${precision}})?`;
const integerPart = `[${digit}\\${thousandSeparator}]*`;
const decimalPart = `(\\${decimalSeparator}${digit}{0,${precision}})?`;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should escape possible dot (wildcard)

@github-actions
Copy link
Contributor

Visit the preview URL for this PR (updated for commit 59a205a):

https://maskito--pr69-number-zero-padding-oxe8ui4x.web.app

(expires Sat, 21 Jan 2023 14:10:57 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 61e4dea776cbea516b68c67840913d2edd88bb90

@nsbarsukov nsbarsukov merged commit 19fda20 into main Jan 20, 2023
@nsbarsukov nsbarsukov deleted the number-zero-padding-pseudo-sep-bug branch January 20, 2023 14:29
This was referenced Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐞 - Number broken mask if decimalSeparator is a dot
2 participants