Zolmeister/grunt-sails-linker — pull request #6 by kenborge (2013-09-16 09:42:08+00:00)
Title: Search for end tag after start tag

There is no reason to search the hole file for the end tag and then just return if the end tag is before the start tag, It's better to just search for the tag after the index of the start tag.
This also fixes an issue we had with having the multiple instances of the same end tag in the file, so the script found the wrong tag and returned because the tag was before the start tag.