Open Ymac101 opened 4 years ago
hmm, im pretty sure I patched that on 0.2.0, but ill give it a look!
works for me on 0.2.1:
are you sure you're using the latest release?
if not, what's your lua's version?
C:\Users\User>ilua
Jupyter console 5.3.0dev
ILua 0.2.1
In [1]: string.find?
Signature: string.find(s, pattern [, init [, plain]])
Documentation:
Looks for the first match of `pattern` (see §6.4.1) in the string `s`. If it
finds a match, then `find` returns the indices of `s` where this occurrence
starts and ends; otherwise, it returns **nil**. A third, optional numeric
argument `init` specifies where to start the search; its default value is 1
and can be negative. A value of **true** as a fourth, optional argument
`plain` turns off the pattern matching facilities, so the function does a
plain "find substring" operation, with no characters in `pattern` being
considered magic. Note that if `plain` is given, then `init` must be given as
well.
If the pattern has captures, then in a successful match the captured values
are also returned, after the two indices.
Path: n/a
Wait, my bad. I was actually using a modified version of jupyter_console that fixed this bug here is my upstream PR: https://github.com/jupyter/jupyter_console/pull/177 Unfortunately, Jupyter is yet to merge that PR, so I probably set a workaround at the scope of this project.
When an illegal character is present in a function's docstring (e.g
string.find()
) the shell crashes altogether: