forked from justadudewhohacks/opencv4nodejs
-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
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
str.replace is not a function #138
Comments
I got to the bottom of this by researching #134, so I'd like to comment here as well. The cause is that a boolean is passed to function run(str, code) {
console.log(`★str: ${str}`);
return enabled
? `${code.open}${str.replace(code.regexp, code.open)}${code.close}`
: str;
}
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Macos
OpenCV installed with brew
Node.js v20.11.1
OpenCV 4.9.0_4
package.json
The text was updated successfully, but these errors were encountered: