Merge pull request #110 from nickago/MM-1430

MM-1430 Added the ability to have hashtags with dashes in them
Этот коммит содержится в:
Corey Hulen
2015-06-30 19:46:25 -08:00
родитель 1200f76484 bcc31b714b
Коммит 75c1938077
3 изменённых файлов: 19 добавлений и 3 удалений

Просмотреть файл

@@ -395,8 +395,8 @@ module.exports.textToJsx = function(text, options) {
var inner = [];
// Function specific regexes
var hashRegex = /^href="#[^"]+"|(#[A-Za-z]+[A-Za-z0-9_]*[A-Za-z0-9])$/g;
// Function specific regex
var hashRegex = /^href="#[^"]+"|(#[A-Za-z]+[A-Za-z0-9_\-]*[A-Za-z0-9])$/g;
var implicitKeywords = UserStore.getCurrentMentionKeys();