We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d0b439 commit 2c541e5Copy full SHA for 2c541e5
1 file changed
packages/google-api-core/google/api_core/path_template.py
@@ -141,16 +141,16 @@ def replacer(match):
141
142
if positional == "*":
143
wildcard_types.append("*")
144
- return r"([^/]+)"
+ return _SINGLE_SEGMENT_PATTERN
145
elif positional == "**":
146
wildcard_types.append("**")
147
- return r"(.+)"
+ return _MULTI_SEGMENT_PATTERN
148
elif not template or template == "*":
149
150
151
elif template == "**":
152
153
154
else:
155
sub_pattern, sub_types = _build_capture_pattern(template)
156
wildcard_types.extend(sub_types)
0 commit comments