Fix iroiro
This commit is contained in:
parent
145ba241e2
commit
39edc11ad8
7 changed files with 22 additions and 15 deletions
|
|
@ -6,7 +6,7 @@ module.exports = (text, i) => {
|
|||
if (!(/^\s#[^\s]+/.test(text) || (i == 0 && /^#[^\s]+/.test(text)))) return null;
|
||||
const isHead = text[0] == '#';
|
||||
const hashtag = text.match(/^\s?#[^\s]+/)[0];
|
||||
const res = !isHead ? [{
|
||||
const res: any[] = !isHead ? [{
|
||||
type: 'text',
|
||||
content: text[0]
|
||||
}] : [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue