Remove search wildcard at end trigger, Fix . in username in mention breaking mentions

This commit is contained in:
Marie 2023-12-13 18:42:26 +01:00
parent ae92c2a9d0
commit 3b5bfe6f6a

View file

@ -514,7 +514,7 @@ export const language = P.createLanguage({
const parser = P.seq([
notLinkLabel,
P.str('@'),
P.regexp(/[a-z0-9_-]+/i),
P.regexp(/[a-z0-9_.-]+/i),
P.seq([
P.str('@'),
P.regexp(/[a-z0-9_.-]+/i),
@ -723,7 +723,6 @@ export const language = P.createLanguage({
search: r => {
const button = P.alt([
P.regexp(/\[(検索|search)\]/i),
P.regexp(/(検索|search)/i),
]);
return P.seq([
newLine.option(),