diff --git a/regex-mask-plugin.js b/regex-mask-plugin.js index 30b8116..85b042a 100644 --- a/regex-mask-plugin.js +++ b/regex-mask-plugin.js @@ -6,6 +6,8 @@ mask = /^((\d{1,3}(\.\d{3})*(((\.\d{0,2}))|((\,\d*)?)))|(\d+(\,\d*)?))$/; } else if (mask == 'float-enus') { mask = /^((\d{1,3}(\,\d{3})*(((\,\d{0,2}))|((\.\d*)?)))|(\d+(\.\d*)?))$/; + } else if (mask == 'integer') { + mask = /^\d+$/; } else { try { mask.test("");