Skip to content

Commit f86a47b

Browse files
authored
fix: make # after alpha/beta optional (googleapis#540)
1 parent eb4f4aa commit f86a47b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gapic/schema/naming.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def build(
9999
# This code may look counter-intuitive (why not use ? to make it
100100
# optional), but the engine's greediness routine will decide that
101101
# the version is the name, which is not what we want.
102-
version = r'\.(?P<version>v[0-9]+(p[0-9]+)?((alpha|beta)[0-9]+)?)'
102+
version = r'\.(?P<version>v[0-9]+(p[0-9]+)?((alpha|beta)[0-9]*)?)'
103103
if re.search(version, root_package):
104104
pattern += version
105105

0 commit comments

Comments
 (0)