[Glitch] In keyword filter, account for reblogs, HTML and whole-words
Port 404c7702ec
to glitch-soc
remotes/1727458204337373841/tmp_refs/heads/signup-info-prompt
parent
00c1386b9d
commit
6777dfc8d9
|
@ -45,7 +45,7 @@ export const regexFromFilters = filters => {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return new RegExp(filters.map(filter => escapeRegExp(filter.get('phrase'))).join('|'), 'i');
|
return new RegExp(filters.map(filter => escapeRegExp(filter.get('phrase'))).map(expr => `\\b${expr}\\b`).join('|'), 'i');
|
||||||
};
|
};
|
||||||
|
|
||||||
export const makeGetStatus = () => {
|
export const makeGetStatus = () => {
|
||||||
|
|
Loading…
Reference in New Issue