Fix mention suggestions

This commit is contained in:
Jon Staab
2025-01-28 12:26:19 -08:00
parent db2076135d
commit ac3408c119
11 changed files with 20 additions and 19 deletions
+1 -1
View File
@@ -211,7 +211,7 @@ export const parseEvent = (text: string, context: ParseContext): ParsedEvent | v
}
export const parseInvoice = (text: string, context: ParseContext): ParsedInvoice | void => {
const [value] = text.match(/^ln(lnbc|lnurl)[\d\w]{50,1000}/i) || []
const [value] = text.match(/^ln(bc|url)[0-9a-z]{10,}/i) || []
if (value) {
return {type: ParsedType.Invoice, value, raw: value}