mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-27 00:13:03 +00:00
Fix bug
This commit is contained in:
parent
9c972b6bd6
commit
02a3300f25
1 changed files with 3 additions and 1 deletions
|
@ -221,7 +221,9 @@ const elements = [
|
||||||
// label
|
// label
|
||||||
code => {
|
code => {
|
||||||
if (code[0] != '@') return null;
|
if (code[0] != '@') return null;
|
||||||
const label = code.match(/^@([a-zA-Z_-]+?)\n/)[0];
|
const match = code.match(/^@([a-zA-Z_-]+?)\n/);
|
||||||
|
if (!match) return null;
|
||||||
|
const label = match[0];
|
||||||
return {
|
return {
|
||||||
html: `<span class="label">${label}</span>`,
|
html: `<span class="label">${label}</span>`,
|
||||||
next: label.length
|
next: label.length
|
||||||
|
|
Loading…
Reference in a new issue