Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getDecimals (string, locale = this.locale) {
const { decimal } = Decimal.getDelimiters(locale)
const match = string.match(new RegExp(`\\${decimal}(\\d+?)$`))
return match ? match[1] : ''
}