We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LastOnigError()
Please expose a function that returns the last LastOnigError
I am currently able to get the error code by calling a private function inside a scanner
scanner
// @ts-ignore const errorCode = scanner._onigBinding.UTF8ToString(scanner._onigBinding._getLastOnigError());
maybe something like:
export function lastOnigError(): string { if (!onigBinding) { throw new Error(`Must invoke loadWASM first.`); } return onigBinding.UTF8ToString(onigBinding._getLastOnigError()); }
and would it be possible to extract the location of the error as well? index of which regex caused it and position of the error within the regex
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Please expose a function that returns the last LastOnigError
I am currently able to get the error code by calling a private function inside a
scanner
maybe something like:
and would it be possible to extract the location of the error as well?
index of which regex caused it
and position of the error within the regex
The text was updated successfully, but these errors were encountered: