Skip to content

Commit 4a10ba2

Browse files
author
David Cavazos
authored
Fixed validation regular expressions (GoogleCloudPlatform#4244)
* Fixed validation regular expressions * Refined Pub/Sub regex
1 parent 9d89491 commit 4a10ba2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dataflow/flex-templates/streaming_beam/metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"label": "Input PubSub subscription.",
88
"helpText": "Name of the input PubSub subscription to consume from.",
99
"regexes": [
10-
"[/:-_.a-zA-Z0-9]+"
10+
"(?!goog)[a-zA-Z][-_.~+%a-zA-Z0-9]{2,}"
1111
]
1212
},
1313
{
@@ -16,7 +16,7 @@
1616
"helpText": "Name of the BigQuery output table name.",
1717
"is_optional": true,
1818
"regexes": [
19-
"[/:-_.a-zA-Z0-9]+"
19+
"[^:]+:[^.]+[.].+"
2020
]
2121
}
2222
]

0 commit comments

Comments
 (0)