4-Roads / FourRoads.TelligentCommunity

A collection of plugins to extend the functionality of the Telligent Community platform
MIT License
6 stars 9 forks source link

Allow links to be forced to lowercase #31

Closed rhysgodfrey closed 8 years ago

rhysgodfrey commented 8 years ago

Update the links plugin to allow all local links in content to be forced to lowercase.

Defaults to off (to ensure compatibility with current installations of the plugin).

Only updates local links (regardless of it being an absolute url (/whatever/), full url to the same domain (http://mycommunity.com/whatever/), or protocol relative URL (//mycommunity.com/whatever)).

Doesn't alter external links (links with a different host segment).

Doesn't alter Query string values or Anchors, these can be case sensitive so forcing them to lower case could break links.

RJN368 commented 8 years ago

Could we improve performance by only running the anchor link regular expression once?