Merge branch 'filter-urls' of github.com:nature/pa11y-dashboard into develop

This commit is contained in:
Rowan Manning
2014-03-04 14:14:49 +00:00
11 changed files with 187 additions and 55 deletions

View File

@@ -21,7 +21,7 @@ function helper (register) {
// Simplify url by removing (eg http://, https://, trailing slashes) from url
register('simplify-url', function (context) {
return context.replace(/^https?:\/\//i, '').replace(/\/$/, '');
return context.replace(/^https?:\/\//i, '').replace(/\/$/, '').toLowerCase();
});
}