MM-1852 Fixed hashtag regex so that it only looks for hashtags starting with a #

Этот коммит содержится в:
hmhealey
2015-09-03 11:54:03 -04:00
родитель f3d3658ef4
Коммит fede1ae96f

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

@@ -457,7 +457,7 @@ export function textToJsx(textin, options) {
var inner = [];
// Function specific regex
var hashRegex = /^href="#[^']+"|(#[A-Za-z]+[A-Za-z0-9_\-]*[A-Za-z0-9])$/g;
var hashRegex = /^href="#[^']+"|(^#[A-Za-z]+[A-Za-z0-9_\-]*[A-Za-z0-9])$/g;
var implicitKeywords = UserStore.getCurrentMentionKeys();