-
Notifications
You must be signed in to change notification settings - Fork 66
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
Regular expression does not match #23
Comments
I've tried original regular exception with your file and it still matches. What I think might be happening is that URL you think is matched is actually url-encoded or something. Try echoing or something the URL that script gets to detect such issues. P.S. |
I have tested regular expresion with JavaScript and work OK, but in JScript host not working. I was try folowing code and I got null result:
|
I haven't used Windows for years now, so I have idea what really is wrong, but I'm sure it worked on Windows 7 where I developed original regular expression. Maybe in Windows 10 some symbols needs to be escaped to get regex working. |
Ran into this as well. What I'm seeing is:
is changed to
tweaked the regex to allow for open/?
|
I was tested on Win 10, 64-bit and this regular expresion works OK :) But,
and change this line: My patch is here master...jankod:patch-1 |
Please don't close the issue until the issue is resolved for others. And send a PR (only regular expression part). Right now you've made a change in your fork, but haven't send a PR, that can be merged. |
@jankod your version of the regex adds support for open/?file but drops support for open?file which might be needed by older versions of windows. |
Yes, I forgot for another Windows version. maybe it could be a solution something like this, where objItem.Version probably hold OS version number.
|
You not just making |
Don't see any reason to get windows versions involved or change existing behavior.
can't comment on editor path stuff as I'm using jetbrains toolbox which has a whole different path layout unfortunately. |
Yes, it is good idea for add / character optional. |
that looks even better. |
@jarro this is not only Windows 10 issue. I am using Windows 7 and I also had additional |
This was originally developed for Windows 7 and worked there. Probably some nasty Windows Update changed something in how it works. |
Also encountered this problem, and the regex from @jankod fixed it for me. |
So @jankod is any PR coming soon with approved solution from #23 (comment) ? |
Here is my new patch |
I was test on Windows 10 64 bit, with phpstorm on symfony 3.2.5 which produce link like this:
This line of code does not match:
I was develop new simple version of code that work fine:
The text was updated successfully, but these errors were encountered: