in js/src/extractMentionsWithIndices.js [7:23]
export default function(text) {
const mentions = [];
let mentionOrList;
const mentionsOrLists = extractMentionsOrListsWithIndices(text);
for (let i = 0; i < mentionsOrLists.length; i++) {
mentionOrList = mentionsOrLists[i];
if (mentionOrList.listSlug === '') {
mentions.push({
screenName: mentionOrList.screenName,
indices: mentionOrList.indices
});
}
}
return mentions;
}