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

fix: regex correctly matches url() referenced assets #11

Merged
merged 2 commits into from
Oct 9, 2018

Conversation

bsheen
Copy link
Contributor

@bsheen bsheen commented Oct 10, 2017

Additionally, adjusted how greedy the regex is and added
links out to Regex101.com for easy future reference

This fix addresses the issue reported here:
#7

Additionally, adjusted how greedy the regex is and added
links out to Regex101.com for easy future reference

This fix addresses the issue reported here:
getgrav#7
@DanYoSon
Copy link

@bsheen I also ran into this issue. When looking at your PR I noticed the regex in your comment is slightly different than the actual code. In the comment you take into account both types of brackets ' and ". Did you remove the double quotes for a reason?

@bsheen
Copy link
Contributor Author

bsheen commented Jan 29, 2018

@DanYoSon it's most likely an oversight on my part. I think that double quotes should be included as per the comments and demonstrated here:
https://regex101.com/r/g0R6sj/3

@DanYoSon
Copy link

@bsheen I suspected that that was what happened. I just wanted to make sure I wasn't missing something and that there was something to learn :)

@rhukster rhukster merged commit 5412c30 into getgrav:develop Oct 9, 2018
@rhukster
Copy link
Member

rhukster commented Oct 9, 2018

Sorry it took so long.. fixed with double quote too.

@bsheen
Copy link
Contributor Author

bsheen commented Oct 9, 2018

Thanks @rhukster!

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.

3 participants