MFMの((()))構文が顔文字と競合する対策としてタグ形式の構文も追加
This commit is contained in:
parent
be67f5f422
commit
d0926a3ba1
2 changed files with 9 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue