diff --git a/src/base/reader.js b/src/base/reader.js
index <HASH>..<HASH> 100644
--- a/src/base/reader.js
+++ b/src/base/reader.js
@@ -156,7 +156,7 @@ const Reader = Class.extend({
             defaultValue :
             defaultValue.trim()
               .replace(",", ".")
-              .replace(new RegExp(/[.,].test(defaultValue)/ ? "0+$" : ""), "")
+              .replace(new RegExp(defaultValue.replace(",", ".").includes(".") ? "0+$" : ""), "")
               .replace(/\.$/, "");
 
           const parser = parsers[key];
Fix the bug when trailing zeros always get truncated