Checks run (2 succeeded)
flake8
passed.
JSHint
passed.
Review Request #15272 — Created Sept. 4, 2026 and submitted
Lua patterns write non-greedy repetition as an item followed by
-
(.-,%s-). The converter only checked for-after*,+, or
?(a sequence Lua treats as a quantified item followed by a literal
dash), so real non-greedy patterns silently translated the-to a
literal dash, changing the pattern's meaning.The converter now follows Lua's parsing rules:
-directly after a
quantifiable item (a character, escape, or class) becomes*?, and a
-anywhere else (pattern start, after a quantifier, after a capture
group) stays literal. The old error return for*-is gone, since
that sequence is valid in Lua.
| Summary | ID |
|---|---|
| oqzwyxnkptvopskmupvrpnltzmnyskrv |