diff --git a/gapic/schema/naming.py b/gapic/schema/naming.py index 699b524ab5..21a075b95d 100644 --- a/gapic/schema/naming.py +++ b/gapic/schema/naming.py @@ -99,7 +99,7 @@ def build( # This code may look counter-intuitive (why not use ? to make it # optional), but the engine's greediness routine will decide that # the version is the name, which is not what we want. - version = r'\.(?Pv[0-9]+(p[0-9]+)?((alpha|beta)[0-9]+)?)' + version = r'\.(?Pv[0-9]+(p[0-9]+)?((alpha|beta)[0-9]*)?)' if re.search(version, root_package): pattern += version