@telerik/kendo-intl
Advanced tools
Comparing version 1.2.0 to 1.2.1-dev.201708211012
@@ -62,2 +62,9 @@ import formatString from '../common/format-string'; | ||
var STAND_ALONE_SPECIFIERS = { | ||
e: 'c', | ||
E: 'c', | ||
M: 'L', | ||
Q: 'q' | ||
}; | ||
var specifiersRegex = {}; | ||
@@ -134,10 +141,14 @@ var resolvedFormats = {}; | ||
result = result.replace("v", "z"); | ||
//need to check for standalone specifiers if only one specifier | ||
for (var idx$1 = 0; idx$1 < specifiersLength; idx$1++) { | ||
if (bestMatches[idx$1] && bestMatches[idx$1] !== specifiers[idx$1]) { | ||
result = result.replace(getSpecifierRegex(bestMatches[idx$1][0]), specifiers[idx$1]); | ||
var bestMatch = bestMatches[idx$1]; | ||
if (bestMatch && bestMatch !== specifiers[idx$1]) { | ||
var matchSpecifier = bestMatches[idx$1][0]; | ||
result = result.replace(getSpecifierRegex(matchSpecifier), specifiers[idx$1]); | ||
if (STAND_ALONE_SPECIFIERS[matchSpecifier]) { | ||
result = result.replace(getSpecifierRegex(STAND_ALONE_SPECIFIERS[matchSpecifier]), specifiers[idx$1]); | ||
} | ||
} | ||
} | ||
return result; | ||
@@ -144,0 +155,0 @@ } |
{ | ||
"name": "@telerik/kendo-intl", | ||
"description": "A package exporting functions for date and number parsing and formatting", | ||
"version": "1.2.0", | ||
"version": "1.2.1-dev.201708211012", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
603326
99
6015
2