Skip to content

Fix escaped object key lookup#7

Merged
uesleibros merged 1 commit into
vbacollective:mainfrom
iDavi:agent/fix-escaped-object-keys
Jul 9, 2026
Merged

Fix escaped object key lookup#7
uesleibros merged 1 commit into
vbacollective:mainfrom
iDavi:agent/fix-escaped-object-keys

Conversation

@iDavi

@iDavi iDavi commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • compare escaped object member names using their decoded JSON text when raw lengths cannot match
  • preserve the ordinal, allocation-free comparison for unescaped matching keys
  • add a narrow raw-key escape detector

Root cause

KeyEquals compared a requested VBA key with the source slice before JSON unescaping. A member named "a\\u0062" could not be retrieved using "ab".

Validation

  • inspected the token offsets and both comparison paths statically
  • git diff --check is not usable unchanged because this repository commits CRLF text; no VBA runtime or test suite is available in this environment

Closes #1

@iDavi iDavi mentioned this pull request Jul 9, 2026
@uesleibros uesleibros marked this pull request as ready for review July 9, 2026 22:30
@uesleibros uesleibros merged commit 326d811 into vbacollective:main Jul 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(KeyEquals): object lookup fails for JSON-escaped member names

2 participants