Skip to content

Commit 92c7989

Browse files
committed
feat: add POSITIVE_DECIMAL_NUMBERS regex
1 parent c939218 commit 92c7989

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Common/Constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export const DOCUMENTATION = {
3535
export const PATTERNS = {
3636
STRING: /^[a-zA-Z0-9_]+$/,
3737
DECIMAL_NUMBERS: /^-?\d*\.?\d*$/,
38+
POSITIVE_DECIMAL_NUMBERS: /^\d*\.?\d*$/,
3839
NATURAL_NUMBERS: /^\d*\.?\d*$/,
3940
KUBERNETES_KEY_PREFIX: /^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/,
4041
KUBERNETES_KEY_NAME: /^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$/,

0 commit comments

Comments
 (0)