TEIC / CETEIcean

TEI in HTML5 Custom Elements
BSD 2-Clause "Simplified" License
164 stars 36 forks source link

Trims URL argument before rewriting #68

Closed rsimon closed 10 months ago

rsimon commented 10 months ago

In this PR

This PR adds a small tweak to the rw(url) utility method. The URL argument is now trimmed before the RegEx check that determines whether the URL should be re-written from a relative to an absolute URL. (If it is re-written, trim is also applied.)

Addresses issue #67.