Skip to content
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

Unclosed regex pattern at position: 2327651 #142

Open
zaitebaki opened this issue Oct 17, 2023 · 0 comments
Open

Unclosed regex pattern at position: 2327651 #142

zaitebaki opened this issue Oct 17, 2023 · 0 comments

Comments

@zaitebaki
Copy link

I get the error

"Uncaught: Unclosed regex pattern at position: 2327651"

when using the JavaScript code:

let jj = jid.match(/([^/]+)(?:\/(.+))?/);

If I replace the code like this:

const regex = new RegExp("([^/]+)(?:\/(.+))?");
let jj = jid.match(regex);

the error disappears, and everything works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant