Don't strip ^/$ off tag location patterns.

This fixes an issue where it jumped to the wrong line.