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

Better detection of relative URLs. #563

Merged
merged 1 commit into from
Mar 5, 2022
Merged

Better detection of relative URLs. #563

merged 1 commit into from
Mar 5, 2022

Conversation

elahd
Copy link
Contributor

@elahd elahd commented Mar 1, 2022

Detects relative URLs that include special characters, such as those used in the images for this repo. See https://regexr.com/6gft9 for examples of what is/is not picked up by the new expression.

The new expression is activated by, essentially, by the pattern any-chars.word. It will not activate if it detects :// in the string, as this indicates that an absolute URL is in use.

@ludeeus ludeeus merged commit ccb1d4f into hacs:main Mar 5, 2022
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

Successfully merging this pull request may close these issues.

2 participants