MFMの((()))構文が顔文字と競合する対策としてタグ形式の構文も追加

This commit is contained in:
syuilo
2018-08-05 23:56:08 +09:00
parent be67f5f422
commit d0926a3ba1
2 changed files with 9 additions and 3 deletions

View File

@ -9,7 +9,7 @@ export type TextElementMotion = {
};
export default function(text: string) {
const match = text.match(/^\(\(\((.+?)\)\)\)/);
const match = text.match(/^\(\(\((.+?)\)\)\)/) || text.match(/^<motion>(.+?)<\/motion>/);
if (!match) return null;
const motion = match[0];
return {