bobril-g11n
Advanced tools
Comparing version 3.2.0 to 3.2.1
CHANGELOG | ||
=== | ||
3.2.1 | ||
-- | ||
Fixes bug with unformating number in locales with . as thousands separator | ||
3.2.0 | ||
@@ -5,0 +10,0 @@ -- |
{ | ||
"name": "bobril-g11n", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "Bobril globalization", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -96,3 +96,3 @@ import { ILocaleRules } from "./localeDataStorage"; | ||
export function buildUnformat(rules: ILocaleRules): (val: string) => number { | ||
const tdMatcher = new RegExp(rules.td, "g"); | ||
const tdMatcher = new RegExp("\\"+rules.td, "g"); | ||
const dd = rules.dd; | ||
@@ -99,0 +99,0 @@ return (val: string) => { |
183337