@bodar/totallylazy
Advanced tools
Comparing version 0.442.285 to 0.443.286
@@ -971,4 +971,4 @@ "use strict"; | ||
"symbols": [ | ||
"₺", | ||
"YTL" | ||
"YTL", | ||
"₺" | ||
] | ||
@@ -975,0 +975,0 @@ }, |
{ | ||
"name": "@bodar/totallylazy", | ||
"version": "0.442.285", | ||
"version": "0.443.286", | ||
"description": "Totallylazy", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:bodar/totallylazy.js.git", |
@@ -92,3 +92,3 @@ import { NamedMatch, NamedRegExp } from "./characters"; | ||
export declare const numberFormatter: (locale: string) => Intl.NumberFormat; | ||
export declare function digits(locale: string): string; | ||
export declare const digits: (locale: string) => string; | ||
export declare class Spaces { | ||
@@ -95,0 +95,0 @@ static codes: string[]; |
@@ -251,6 +251,8 @@ "use strict"; | ||
exports.numberFormatter = cache_1.caching((locale) => new Intl.NumberFormat(locale, { useGrouping: false })); | ||
function digits(locale) { | ||
return `\\d${Numerals.get(locale).characters.join('')}`; | ||
} | ||
exports.digits = digits; | ||
exports.digits = cache_1.caching((locale) => { | ||
const characters = Numerals.get(locale).characters.join(''); | ||
if (characters === '0123456789') | ||
return '\\d'; | ||
return `\\d${characters}`; | ||
}); | ||
class Spaces { | ||
@@ -267,3 +269,3 @@ static handle(value) { | ||
exports.numberPattern = cache_1.caching((locale) => { | ||
const d = digits(locale); | ||
const d = exports.digits(locale); | ||
return `-?(?:[${d}]+[${allowedSeparators}])*[${d}]+`; | ||
@@ -270,0 +272,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
440413
6455