Unmasked bug
See original GitHub issueIn BONUS:
.maskMoney(‘unmasked’) return a float value (ex.: ‘R$ 1.234,56’ => 1234.56).
The problem is if field with value R$ 1.234
(without cents), return 1.234
but correct is 1234
for R$.
Issue Analytics
- State:
- Created 7 years ago
- Comments:8
Top Results From Across the Web
Ray Parker Jr. ('The Masked Singer' Sir Bug a Boo) ...
Ray Parker Jr. ('The Masked Singer' Sir Bug a Boo) unmasked interview: 'When y'all need somebody else on this show…who you gonna call?'....
Read more >The Masked Singer - Sir Bug A Boo / Ray Parker Jr. - FOX
Unmasked Interview: Sir Bug A Boo / Ray Parker Jr. 11-23-2022 • TV-PG • 2m ... Unmasked Interview: Harp / Amber Riley. 12-01-22...
Read more >Who were the celebrities competing as Scarecrow and Sir Bug ...
Two celebrities are unmasked while one moves on to the next week. “The Masked Singer” host is Nick Cannon. Panelists are Ken Jeong,...
Read more >Season 8 Ep. 9 | THE MASKED SINGER | singing, Ray Parker ...
Sir Bug A Boo Unmasked Performance | Season 8 Ep. 9 | THE MASKED SINGER. singing · Ray Parker Jr. performance. Who ya...
Read more >Be careful with bug spray... - Myasthenia Gravis Unmasked
DEET insect repellent has effects on nervous system. New research finds that DEET, one of the world's most common insect repellents affects the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
` unmasked: function () { return this.map(function () { var value = ($(this).val() || “0”), isNegative = value.indexOf(“-”) !== -1, decimalPart; // get the last position of the array that is a number(coercion makes “” to be evaluated as false) $(value.split(/\D/).reverse()).each(function (index, element) { if (element && value.indexOf(‘.’) != -1) { decimalPart = element; return false; } }); value = value.replace(/\D/g, “”);
change “ if (element) { ” to "if (element && value.indexOf(‘.’) != -1) { "
Hi @newerton! Please try instead this https://codepen.io/anon/pen/eRJLWY