Skip to content

Commit 128f6a9

Browse files
author
Nico Sammito
authored
Merge pull request #224 from code0-tech/feat/#111
Update regex pattern for number validation
2 parents 94c8d8e + 8b5bb50 commit 128f6a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

definitions/standard/data_type/primitive/number.proto.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"rules": [
2323
{
2424
"regex": {
25-
"pattern": "^(?:-(?:[1-9](?:\\d{0,2}(?:,\\d{3})+|\\d*))|(?:0|(?:[1-9](?:\\d{0,2}(?:,\\d{3})+|\\d*))))(?:.\\d+|)$"
25+
"pattern": "^-?(?:(?:0|[1-8][0-9]{0,2}(?:,[0-9]{3})*|[1-8][0-9]{0,14}|9,00[0-6](?:,[0-9]{3}){4}|900[0-6][0-9]{11}|9,007,199,254,740,990|9007199254740990)(?:[.][0-9]+)?|-?(?:9,007,199,254,740,991(?:[.]0+)?|9007199254740991(?:[.]0+)?))$"
2626
}
2727
}
2828
],

0 commit comments

Comments
 (0)