gsub regular expression failure
msg opened this issue · comments
msg commented
print(string.format('<%s>', (' one two '):gsub('^%s*', '')))
prints:
< one two >
luajit-2.1 and lua5.1 both print:
<one two >
As expected
Siddhesh Poyarekar commented
Is this with moonjit 2.1.x or 2.2? 2.2 is not meant to be compatible with luajit-2.1.
msg commented
2.2. I'm not sure compatibility is at issue here. I would expect that
regular expression to
work in any version. I guess if it doesn't, a document describing how it
works would be
necessary. I looked at the release notes for 2.2 and there is nothing
about regular expression
changes.
I also ran the same test on lua 5.3.5 and it works.
Matt
…On Fri, Mar 20, 2020 at 9:42 PM Siddhesh Poyarekar ***@***.***> wrote:
Is this with moonjit 2.1.x or 2.2? 2.2 is not meant to be compatible with
luajit-2.1.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#105 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAH4UOQOP46JMCAQBQVEVLRIRASFANCNFSM4LORZBDA>
.
Matěj Cepl commented
According to @erw7 this is what breaks building of neovim in openSUSE, neovim/neovim#12058
Siddhesh Poyarekar commented