Files
PaperClipAI/packages
Priya RamanandPaperclip fdc16817d7 fix(runner): require a standalone await token in the wait guard
The regex-literal-start check treated an await-named property, such
as obj.await, as the await keyword. Code that divides after such a
property, like ${obj.await / divisor + (await vi.waitFor(...))},
could then mask the real vi.waitFor( call as part of a false regex
literal and hide it from the guard.

The check now looks at the character before the matched keyword. A
dot there means the word is a property name, not the keyword, so the
slash after it divides.

Co-authored-by: Paperclip <noreply@paperclip.ing>
2026-09-04 02:00:34 +00:00
..