MFM: Improve search syntax

This commit is contained in:
syuilo
2018-06-23 19:31:28 +09:00
parent 247f334334
commit e4aa003157
2 changed files with 23 additions and 1 deletions

View File

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