Skip to content

Commit

Permalink
Inclusao da mascara de inteiros
Browse files Browse the repository at this point in the history
  • Loading branch information
rlafitte.fa7@gmail.com committed Feb 3, 2011
1 parent 6510269 commit 8f2935c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions regex-mask-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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("");
Expand Down

0 comments on commit 8f2935c

Please sign in to comment.