vue-persian-digit
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "vue-persian-digit", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "> this filter convert number in the text to persian number", | ||
@@ -5,0 +5,0 @@ "main": "./src/main.js", |
@@ -15,8 +15,8 @@ export default function persianDigit (value) { | ||
result = value.toString() | ||
let result = value.toString() | ||
for (let i = 0; i <= 9; i++) { | ||
result = result.replace(new RegExp(`${i}`, 'g'), persian[i]) | ||
} | ||
Vue.nextTick(() => this.value = result) | ||
value = result | ||
return result | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2965