Closed asanger closed 11 years ago
Actually, this may be working... will run some more tests.
Okay... I do believe that this could be improved. Every single site that I've tried to use pomander with has required a ton of sed commands to weed out all the different variations of the URL. I'm sure it will be much easier after the initial conversion, but it still worries me, especially when non-devs are making changes to the site.
Should we do a replace for just the hostname? Any ideas on how to make this smarter/better?
Closing this as it relates to #3 and we don't want to mess with the url structure too much.
Currently, pomander only replaces URLs that match the exact format of
http://{url}
. There are many possible forms that a URL can take, though, depending on a number of different variables. The merge should attempt to replace as many formats as possible.Some examples:
http://www.myurl.com www.myurl.com myurl.com http://myurl.com