We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27bdd72 commit 8983037Copy full SHA for 8983037
src/firebase_functions/private/path_pattern.py
@@ -159,8 +159,8 @@ def has_wildcards(self) -> bool:
159
160
@property
161
def has_captures(self) -> bool:
162
- return any(segment.name == SegmentName.SINGLE_CAPTURE or
163
- segment.name == SegmentName.MULTI_CAPTURE
+ return any(segment.name in (SegmentName.SINGLE_CAPTURE,
+ SegmentName.MULTI_CAPTURE)
164
for segment in self.segments)
165
166
def extract_matches(self, path: str) -> dict[str, str]:
0 commit comments