mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
Improve MFM
This commit is contained in:
parent
e09e54694e
commit
eb260a351b
1 changed files with 1 additions and 1 deletions
|
@ -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',
|
||||||
|
|
Loading…
Add table
Reference in a new issue