jalali-moment
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -12,3 +12,3 @@ | ||
, localFormattingTokens = /(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g | ||
, persianMap ="۱۲۳۴۵۶۷۸۹۰".split("") | ||
, parseTokenOneOrTwoDigits = /\d\d?/ | ||
@@ -614,8 +614,5 @@ , parseTokenOneToThreeDigits = /\d{1,3}/ | ||
}; | ||
function convertToPerianNumber(s) { | ||
var map =[ | ||
"&\#1776;","&\#1777;","&\#1778;","&\#1779;","&\#1780;", | ||
"&\#1781;","&\#1782;","&\#1783;","&\#1784;","&\#1785;" | ||
]; | ||
return map[parseInt(s)]; | ||
return persianMap[parseInt(s)]; | ||
} | ||
@@ -622,0 +619,0 @@ |
{ | ||
"name": "jalali-moment", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Jalaali (Jalali, Persian, Khorshidi, Shamsi) calendar system plugin for moment.js.", | ||
@@ -5,0 +5,0 @@ "author": { |
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
1538153
17634