Skip to content

Commit a685205

Browse files
committed
fix: NATURAL_NUMBERS regex fix
1 parent 1fbfccd commit a685205

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Common/Constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const PATTERNS = {
3636
STRING: /^[a-zA-Z0-9_]+$/,
3737
DECIMAL_NUMBERS: /^-?\d*\.?\d*$/,
3838
POSITIVE_DECIMAL_NUMBERS: /^\d*\.?\d*$/,
39-
NATURAL_NUMBERS: /^\d*\.?\d*$/,
39+
NATURAL_NUMBERS: /^[1-9]\d*$/,
4040
KUBERNETES_KEY_PREFIX: /^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/,
4141
KUBERNETES_KEY_NAME: /^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$/,
4242
START_END_ALPHANUMERIC: /^(([A-Za-z0-9].*[A-Za-z0-9])|[A-Za-z0-9])$/,

0 commit comments

Comments
 (0)