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

Url pattern problem with hyphened domain names #158

Open
n00dl3 opened this issue Oct 20, 2014 · 2 comments
Open

Url pattern problem with hyphened domain names #158

n00dl3 opened this issue Oct 20, 2014 · 2 comments

Comments

@n00dl3
Copy link

n00dl3 commented Oct 20, 2014

Hi, we got a problem on a site with a domain name containing an hyphen, images were considered as other domain ones, line 1403 of caman.full.js v4.1.2
IO.domainRegex = /(?:(?:http|https):\/\/)((?:\w+)\.(?:(?:\w|\.)+))/;
we had to replace it by
IO.domainRegex = /(?:(?:http|https):\/\/)((?:[a-zA-Z0-9_-]+)\.(?:(?:[a-zA-Z0-9_-]*|\.)+))/;
which does the trick

edit:
Sorry, I put a wrong one as a fix

@MarkTraceur
Copy link

@n00dl3 could you submit this as a pull request, so when @meltingice finally decides to actually deal with bug reports, it's a small task for them to fix this issue?

prtksxna added a commit to prtksxna/CamanJS that referenced this issue Apr 19, 2016
Code from @n00dl3's comment on the issue. Closes meltingice#158

Not sure whether build the files to JS, or if that is done during a release cut. 
Running `cake build` on `master` builds more changes than just this one, so 
I am unsure.
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

No branches or pull requests

3 participants