Skip to content

Commit 3b74dd4

Browse files
amrkk123bharathkkb
andauthored
chore: fixed escape character issue in regular expressions (#765)
Co-authored-by: Bharath KKB <bharathkrishnakb@gmail.com>
1 parent 3eb4c96 commit 3b74dd4

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

modules/mysql/metadata.display.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ spec:
265265
email:
266266
name: email
267267
title: Email
268-
regexValidation: ^([a-zA-Z][a-zA-Z0-9_]{0,15}|[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})$
268+
regexValidation: "^([a-zA-Z][a-zA-Z0-9_]{0,15}|[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,})$"
269269
validation: Must be a valid email address or a Google service account email.
270270
type:
271271
name: type
@@ -306,7 +306,7 @@ spec:
306306
name: private_network
307307
title: private_network
308308
subtext: The VPC network used to enable private IP access to the Cloud SQL instance. Cannot be unset once configured.
309-
regexValidation: ^(?:http(?:s)?://.+/)?projects/((?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?)))/global/networks/((?:[a-z](?:[-a-z0-9]*[a-z0-9])?))$
309+
regexValidation: "^(?:http(?:s)?://.+/)?projects/((?:(?:[-a-z0-9]{1,63}.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?)))/global/networks/((?:[a-z](?:[-a-z0-9]*[a-z0-9])?))$"
310310
validation: Invalid format. Expected a valid Google Cloud network resource name, e.g. projects/{project}/global/networks/{network}.
311311
ssl_mode:
312312
name: ssl_mode
@@ -325,7 +325,7 @@ spec:
325325
value:
326326
name: value
327327
title: Value
328-
regexValidation: ^((25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\/(3[0-2]|[1-2]\d|\d)$
328+
regexValidation: "^((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\.){3}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\/(3[0-2]|[1-2][0-9]|[0-9])$"
329329
validation: Must be a valid IPv4 address in CIDR format.
330330
level: 1
331331
maintenance_window_day:

modules/postgresql/metadata.display.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ spec:
235235
email:
236236
name: email
237237
title: Email
238-
regexValidation: ^([a-zA-Z][a-zA-Z0-9_]{0,15}|[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,})$
238+
regexValidation: "^([a-zA-Z][a-zA-Z0-9_]{0,15}|[a-z0-9._%+-]+@[a-z0-9.-]+.[a-z]{2,})$"
239239
validation: Must be a valid email address or a Google service account email.
240240
type:
241241
name: type
@@ -276,7 +276,7 @@ spec:
276276
name: private_network
277277
title: private_network
278278
subtext: The VPC network used to enable private IP access to the Cloud SQL instance. Cannot be unset once configured.
279-
regexValidation: ^(?:http(?:s)?://.+/)?projects/((?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?)))/global/networks/((?:[a-z](?:[-a-z0-9]*[a-z0-9])?))$
279+
regexValidation: "^(?:http(?:s)?://.+/)?projects/((?:(?:[-a-z0-9]{1,63}.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?)))/global/networks/((?:[a-z](?:[-a-z0-9]*[a-z0-9])?))$"
280280
validation: Invalid format. Expected a valid Google Cloud network resource name, e.g. projects/{project}/global/networks/{network}.
281281
ssl_mode:
282282
name: ssl_mode
@@ -294,8 +294,6 @@ spec:
294294
enumValueLabels:
295295
- label: GOOGLE_MANAGED_INTERNAL_CA
296296
value: GOOGLE_MANAGED_INTERNAL_CA
297-
- label: GOOGLE_MANAGED_INTERNAL_CA
298-
value: GOOGLE_MANAGED_INTERNAL_CA
299297
level: 1
300298
maintenance_window_day:
301299
name: maintenance_window_day

0 commit comments

Comments
 (0)