Home Reference Source

application/components/common/simple-editor/strategy/mention.js

import {findWithRegex} from './../util';

export default function mentionStrategy(contentBlock, callback) {
    findWithRegex(/\@[\w]+/g, contentBlock, callback);
}