diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-08-05 23:56:08 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-08-05 23:56:08 +0900 |
| commit | d0926a3ba1e4666cad7ffb4aac4ff5fdc3a1476b (patch) | |
| tree | 3fd8b1ccbc6bf0898baa44842ec8e39b266f870f /src/mfm/parse/elements | |
| parent | :art: (diff) | |
| download | misskey-d0926a3ba1e4666cad7ffb4aac4ff5fdc3a1476b.tar.gz misskey-d0926a3ba1e4666cad7ffb4aac4ff5fdc3a1476b.tar.bz2 misskey-d0926a3ba1e4666cad7ffb4aac4ff5fdc3a1476b.zip | |
MFMの((()))構文が顔文字と競合する対策としてタグ形式の構文も追加
Diffstat (limited to 'src/mfm/parse/elements')
| -rw-r--r-- | src/mfm/parse/elements/motion.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mfm/parse/elements/motion.ts b/src/mfm/parse/elements/motion.ts index 555a989750..9e7370e071 100644 --- a/src/mfm/parse/elements/motion.ts +++ b/src/mfm/parse/elements/motion.ts @@ -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 { |