@colisweb/rescript-toolkit 2.46.6 → 2.46.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -229,7 +229,7 @@ module UnitMeasure = {
|
|
|
229
229
|
| Some([Some(_match), Some(value), Some(unit)]) => {
|
|
230
230
|
let value = value->Js.Float.fromString
|
|
231
231
|
switch unit
|
|
232
|
-
->Js.String2.replaceByRe(%re("/\s/"), "")
|
|
232
|
+
->Js.String2.replaceByRe(%re("/\s/g"), "")
|
|
233
233
|
->Js.Json.string
|
|
234
234
|
->Config.unitEnum_decode {
|
|
235
235
|
| Ok(unit) => Config.wrapValue(unit, value)->Ok
|