From 17d37816d42f93c42187787397c7d4060b2b943d Mon Sep 17 00:00:00 2001 From: hmhealey Date: Tue, 13 Oct 2015 14:36:58 -0400 Subject: Revert "Modified markdown lexer to not break up words written in snake_case" This reverts commit 787d2ef7bca7f411b18d1d13561d61d7e95c81a7. --- web/react/utils/markdown.jsx | 38 +------------------------------------ web/react/utils/text_formatting.jsx | 9 +++++++-- 2 files changed, 8 insertions(+), 39 deletions(-) (limited to 'web') diff --git a/web/react/utils/markdown.jsx b/web/react/utils/markdown.jsx index 848b1ea75..12d6dd424 100644 --- a/web/react/utils/markdown.jsx +++ b/web/react/utils/markdown.jsx @@ -6,31 +6,7 @@ const Utils = require('./utils.jsx'); const marked = require('marked'); -class MattermostInlineLexer extends marked.InlineLexer { - constructor(links, options) { - super(links, options); - - // modified version of the regex that doesn't break up words in snake_case - // the original is /^[\s\S]+?(?=[\\