-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
Unrecognised escape sequence (\/) #663
Comments
You also need to escape the escape character:
Explanation: the first backslash is because of the extraction of the backslash character from the text file (it's a special character for text), the second is the actual regex escape. BTW if you want to ignore all godaddy domains you can just use |
Moved to the main lychee repo, because the error is reproducible without the action. |
I'm gonna close this as resolved. Feel free to reopen in case it doesn't work. 😊 |
Not sure I grok the explanation, but it works 🤷 |
Backslash is commonly associated with escaping the next character in a string. However I think in reality it's because
|
I am trying to add a
.lycheeignore
file that will ignorehttps://www.godaddy.com/
. (Because it returns infinite HTTP 302s as it tries to redirect to a localized page).I'd like to be able to ignore even if the trailing sforward slash is present or not.
So I construct the following regex:
git-ecosystem/git-credential-manager@e848ba8
However, lychee appears to barf on this regex:
I've stared at this for about 30 mins on regex101.com, but I cannot see how this is wrong regex.
See: https://regex101.com/r/P1B4wT/1
I tried with a non-capturing group also, but no change: git-ecosystem/git-credential-manager@bc76c6e
The text was updated successfully, but these errors were encountered: