We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi devs,
I'm trying use BRL currency in @IsCurrency options, but when I use this setting the validator fails:
{ symbol: 'R$', require_symbol: true, allow_space_after_symbol: true, symbol_after_digits: false, allow_negatives: false, parens_for_negatives: false, negative_sign_before_digits: false, negative_sign_after_digits: false, allow_negative_sign_placeholder: false, thousands_separator: '.', decimal_separator: ',', allow_decimal: true, require_decimal: true, digits_after_decimal: [2], allow_space_after_digits: false, }
Value: R$ 1.400,00
R$ 1.400,00
"statusCode": 400, "message": [ "monthyMoneyGoal must be a currency" ], "error": "Bad Request"
But changing symbol to $ it works:
$
{ symbol: '$', require_symbol: true, allow_space_after_symbol: true, symbol_after_digits: false, ... }
Value: $ 1.400,00
$ 1.400,00
"statusCode": 200, "message": [ "Successful update" ],
Changing symbol to $R it unbelievably too works!
$R
Why? Where is error?
PS: My app uses single quotes in Prettier Formatter
The text was updated successfully, but these errors were encountered:
Thanks for raising! PR welcome.
Sorry, something went wrong.
Hi @profnandaa , I was able reproduce it on a unit test. I would be glad of working on this issue if it still open.
fix: isCurrency symbol validator regex (#1306)
be34383
closes #1292
Successfully merging a pull request may close this issue.
Hi devs,
I'm trying use BRL currency in @IsCurrency options, but when I use this setting the validator fails:
Value:
R$ 1.400,00
But changing symbol to
$
it works:Value:
$ 1.400,00
Changing symbol to
$R
it unbelievably too works!Why? Where is error?
PS: My app uses single quotes in Prettier Formatter
The text was updated successfully, but these errors were encountered: