DEV: linting

This commit is contained in:
jjaffeux
2020-09-22 17:11:41 +02:00
parent ca86e0b63c
commit 6205bb8569
5 changed files with 163 additions and 157 deletions
@@ -101,7 +101,9 @@ export default Ember.Component.extend({
return !!this.site.categories.find((c) => c.id === intVal);
} else if (/\//.test(value)) {
const match = /(.*)\/(.*)/.exec(value);
if (!match) return false;
if (!match) {
return false;
}
const result = Category.findBySlug(
match[2].dasherize(),
match[1].dasherize()