tomiis4 / hypersonic.nvim

A Neovim plugin that provides an explanation for regular expressions.
Apache License 2.0
216 stars 3 forks source link

Getting error of "unable to concatonate a nil value" #9

Closed ErezAmihud closed 1 year ago

ErezAmihud commented 1 year ago

Hi, I tried it on the regex in the following code:

import re

r = re.compile(r"^[\w-\.]+@")

And there was an exception:

Error executing Lua callback: ...share/nvim/lazy/Hypersonic.nvim/lua/hypersonic/merge.lua:236: attempt to concatenate a nil value
stack traceback:
        ...share/nvim/lazy/Hypersonic.nvim/lua/hypersonic/merge.lua:236: in function 'Merge'
        .../share/nvim/lazy/Hypersonic.nvim/lua/hypersonic/init.lua:56: in function 'get_informations'
        .../share/nvim/lazy/Hypersonic.nvim/lua/hypersonic/init.lua:203: in function <.../share/nvim/lazy/Hypersonic.nvim/lua/hypersonic/init.lua:196>

The full regex I wanted to test is https://regexr.com/3e48o

tomiis4 commented 1 year ago

Hi, thank you for reporting this. I'm very sorry for this issue, by end of this day it should be fixed. (Quantifiers are not working correctly)