MFMの((()))構文が顔文字と競合する対策としてタグ形式の構文も追加
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user