You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
numeral should expose the languages collection. This way the language definition is available.
In my case I'm removing the thousands delimiter and currency symbol from an input text and test if it's a number.
Example
var langData = numeral.languages()[numeral.language()];
var re = new RegExp('[' + langData.delimiters.thousands + langData.currency.symbol + ']', "g");
var rawValue = value.replace(re, '');
var isNumber = Number(rawValue);
Thanks
The text was updated successfully, but these errors were encountered:
Hello,
numeral should expose the languages collection. This way the language definition is available.
In my case I'm removing the thousands delimiter and currency symbol from an input text and test if it's a number.
Example
var langData = numeral.languages()[numeral.language()];
var re = new RegExp('[' + langData.delimiters.thousands + langData.currency.symbol + ']', "g");
var rawValue = value.replace(re, '');
var isNumber = Number(rawValue);
Thanks
The text was updated successfully, but these errors were encountered: