Skip to content

Commit f5b2340

Browse files
committed
fix: allow any characters in task name match pattern
Signed-off-by: Shingo OKAWA <[email protected]>
1 parent 35378ab commit f5b2340

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/a2a/utils/proto_utils.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@
1818

1919

2020
# Regexp patterns for matching
21-
_TASK_NAME_MATCH = r'tasks/([a-zA-Z0-9_.-]+)'
22-
_TASK_PUSH_CONFIG_NAME_MATCH = (
23-
r'tasks/([a-zA-Z0-9_.-]+)/pushNotificationConfigs/([a-zA-Z0-9_.-]+)'
24-
)
21+
_TASK_NAME_MATCH = r'tasks/([^/]+)'
22+
_TASK_PUSH_CONFIG_NAME_MATCH = r'tasks/([^/]+)/pushNotificationConfigs/([^/]+)'
2523

2624

2725
class ToProto:

0 commit comments

Comments
 (0)