1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-10-31 23:31:48 +09:00

Improve MFM

This commit is contained in:
syuilo 2018-08-15 20:27:36 +09:00
parent 69ac7b739f
commit 83dcfec053

View File

@ -9,7 +9,7 @@ export type TextElementSearch = {
}; };
export default function(text: string) { export default function(text: string) {
const match = text.match(/^(.+?) (検索|Search)(\n|$)/i); const match = text.match(/^(.+?)( | )(検索|\[検索\]|Search|\[Search\])(\n|$)/i);
if (!match) return null; if (!match) return null;
return { return {
type: 'search', type: 'search',