parent
5c5c31aadf
commit
9a88b52b25
@ -166,7 +166,7 @@ function extractHashtags(fragments: Fragment[]) {
|
||||
.map(f => {
|
||||
if (typeof f === "string") {
|
||||
return f.split(HashtagRegex).map(i => {
|
||||
if (i.toLowerCase().startsWith("#")) {
|
||||
if (i.match(HashtagRegex)) {
|
||||
return {
|
||||
type: "hashtag",
|
||||
content: i.substring(1),
|
||||
@ -336,5 +336,8 @@ export function transformText(body: string, tags: Array<Array<string>>) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if(frags.some(a => a.type==="hashtag")) {
|
||||
console.debug(frags);
|
||||
}
|
||||
return frags;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user