Fix findArticleXml: walk backwards from <nr> to enclosing <artikel>
The old regex matched from the very first <artikel> in the file up to
the target <nr>, capturing all preceding articles. New approach:
1. Find <nr>N</nr> position
2. lastIndexOf('<artikel') backwards to get the correct opener
3. Track nesting depth forward to find the matching </artikel>
https://claude.ai/code/session_016JxWnFc3baeDgkzDgxY6ex
| Repository | Jeroen1991z/mikeNL |
|---|---|
| Author | Claude <noreply@anthropic.com> |
| Authored | |
| Committed | |
| Parents | ee87b225 |
| Stats | 1 file changed , +26 , -7 |
| Part of | Legal citation side panel (full-text reader with quote highlight) |
Capture this commit into my fork
Download a Markdown prompt that tells Claude how to port this
exact commit into your working tree. Run it via
claude -p < capture-commit-fa78a296.md
from inside the repo you want the change in.