From 680838da0073863b1909d17abb58ca063778c5a5 Mon Sep 17 00:00:00 2001 From: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Date: Mon, 20 Jul 2020 14:47:20 -0700 Subject: [PATCH] fix: make # after alpha/beta optional --- gapic/schema/naming.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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