Skip to content

Commit 1387420

Browse files
authored
Create readme.md
1 parent f8c6bec commit 1387420

File tree

1 file changed

+7
-0
lines changed
  • Client-Side Components/Client Scripts/Allow positive and decimal values

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Purpose of this script:
2+
3+
It matches positive numbers (integers or decimals)
4+
It does not match 0 or 0.0 (i.e., it excludes non-positive numbers).
5+
6+
So this regex is used when you want to allow only positive (> 0) integer or decimal values.
7+
It will give us the field message error if anyone tries to enter anything apart from the allowed values

0 commit comments

Comments
 (0)