forked from external-repos/pa11y-dashboard
Use the ES6 linting rules from the website (#138)
This commit is contained in:
@@ -20,7 +20,7 @@ module.exports = helper;
|
||||
function helper(hbs) {
|
||||
|
||||
// Simplify url by removing (eg http://, https://, trailing slashes) from url
|
||||
hbs.registerHelper('simplify-url', function(context) {
|
||||
hbs.registerHelper('simplify-url', context => {
|
||||
return context.replace(/^https?:\/\//i, '').replace(/\/$/, '').toLowerCase();
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user