-
Notifications
You must be signed in to change notification settings - Fork 238
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
An issue about parsing URL with regular expression #1238
Comments
Thank you for the report. The problem reproduces here on macOS as well. It looks like the process is killed because it eventually allocates too much memory. Note that the title of this issue is incorrect. The test case does not parse a URL. The URL is in the variable Note also that this issue is reported against Moddable SDK 3.7.0. The current release is 4.2.1. FWIW - JavaScriptCore and V8 evaluate the regex quickly and without an error. We will investigate. |
Thank you very much for your reply. I'm sorry for my carelessness, I made a mistake while locating the problem. Actually, this piece of code was originally designed for URL parsing, but I mistakenly wrote the function parameter |
Thank you for the clarification. The problem happens using either |
The fix for this is live now. Please give it a try. |
Just FWIW -- the Moddable SDK includes an implementation of the web's |
I have tried the solution you provided and the problem has been successfully resolved. Thank you very much. |
Excellent. Thanks again for reporting the issue. We're always glad to fix issues like this. |
Description:
When I parse URLs with a complex regular expression, the result of XS is Killed, which looks like an issue.
Environment:
JS Information:
Testcase:
Result:
The text was updated successfully, but these errors were encountered: