1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-11-25 07:37:13 +09:00

Update 1644010796173-convert-hard-mutes.js

This commit is contained in:
syuilo 2022-02-11 21:06:38 +09:00
parent fd5a304821
commit c456825d0e

View File

@ -9,6 +9,7 @@ module.exports = class convertHardMutes1644010796173 {
for(let i = 0; i < entries.length; i++) {
let words = entries[i].mutedWords
.map(line => {
if (typeof line === 'string') return [];
const regexp = line.join(" ").match(/^\/(.+)\/(.*)$/);
if (regexp) {
// convert regexp's