Skip to content

Commit e5a1cb7

Browse files
authored
Merge pull request #421 from italia/fix/submission_path
fix: acceptance of submission path
2 parents 9e1fb5f + 376ca48 commit e5a1cb7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyeudiw/openid4vp/presentation_submission/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ def _extract_position(self, path: str) -> int:
109109
:return: Tuple of position and path.
110110
:rtype: tuple[str, str]
111111
"""
112+
if path == "$":
113+
return 0
112114
pattern = r"\$[a-z_\-\.]*\[(\d+)\]"
113115
match = re.match(pattern, path, re.I)
114116
if match:

0 commit comments

Comments
 (0)