[Glitch] Run eslint --fix
I don't like it changing files this way, but it's basically what
c49213f0ea
and a few others did.
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
export function recoverHashtags (recognizedTags, text) {
|
||||
return recognizedTags.map(tag => {
|
||||
const re = new RegExp(`(?:^|[^\/\)\w])#(${tag.name})`, 'i');
|
||||
const matched_hashtag = text.match(re);
|
||||
return matched_hashtag ? matched_hashtag[1] : null;
|
||||
}
|
||||
const re = new RegExp(`(?:^|[^\/\)\w])#(${tag.name})`, 'i');
|
||||
const matched_hashtag = text.match(re);
|
||||
return matched_hashtag ? matched_hashtag[1] : null;
|
||||
},
|
||||
).filter(x => x !== null);
|
||||
}
|
||||
|
@ -2,4 +2,4 @@ export const order = ['public', 'unlisted', 'private', 'direct'];
|
||||
|
||||
export function privacyPreference (a, b) {
|
||||
return order[Math.max(order.indexOf(a), order.indexOf(b), 0)];
|
||||
};
|
||||
}
|
||||
|
@ -7,7 +7,7 @@ export function assignHandlers (target, handlers) {
|
||||
// We just bind each handler to the `target`.
|
||||
const handle = target.handlers = {};
|
||||
Object.keys(handlers).forEach(
|
||||
key => handle[key] = handlers[key].bind(target)
|
||||
key => handle[key] = handlers[key].bind(target),
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user