unprint 0.10.7 → 0.10.8
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 +1 -1
- package/src/app.js +4 -0
package/package.json
CHANGED
package/src/app.js
CHANGED
|
@@ -194,6 +194,10 @@ function queryDatasets(context, selector, dataAttribute, customOptions) {
|
|
|
194
194
|
const defaultNumberRegexp = /\d+([.,]\d+)?/;
|
|
195
195
|
|
|
196
196
|
function matchNumberString(rawNumberString, options) {
|
|
197
|
+
if (!rawNumberString) {
|
|
198
|
+
return null;
|
|
199
|
+
}
|
|
200
|
+
|
|
197
201
|
const numberString = options.separator === ','
|
|
198
202
|
? rawNumberString.replace(',', '.')
|
|
199
203
|
: rawNumberString.replace(',', '');
|