Closed dargueta closed 1 year ago
Can you send a PR for this? I think you fix looks like it will be correct, but we'll want to see some test results, which a PR should show us.
Done: https://github.com/lunarmodules/Penlight/pull/452
After a bit of tinkering I realized I needed to use string escaping rather than a literal search so that the inline escape would work as well.
Fixed by #452
Suppose we have the following code:
It appears the escape has no effect:
If we use something else, like
!
, we get the expected result:I think we can fix this by passing
plain=true
to thestrfind()
calls here, e.g.Environment: OS: Ubuntu 22.04 Lua: 5.4.4 Penlight: 1.13.1