Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRegex functions throw errors #440
Open
Comments
|
This has to do with the |
|
Thanks for the info. I started implementing Regex.replace(~r/foo/i, "hello foo", "world")and the regex in function run(subject, regex, options) {
console.log(regex)
// => Tuple {values: Array(5), length: 5}
console.log(regex.values)
// => [Symbol(re_pattern), 0, 0, 0, "ERCPM�������������������f�o�������@������������������������������� �f�o�ox� �"]
}Any idea how I can extract a meaningful value from that? Thanks in advance. |
|
That's odd. Nothing off the top of my head. That must be the binary representation. It's possible the BitString JavaScript module may be able to make something out of it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Regex.replace/4,Regex.match?/2, andString.replace/4throw the following error in the browser:while trying to call
See here for a repository that demonstrates the issue: https://github.com/mrdziuban/elixirscript_test.
You can also go to http://mattdziuban.com/elixirscript_test/ and click the buttons to see the error and stack trace.