slack-message-parser
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -5,3 +5,3 @@ "use strict"; | ||
const combinator_1 = require("./combinator"); | ||
const parseBold = combinator_1.explicit(combinator_1.regexp(/^\*(\S([^*\n]*?|[^*\n]*? `.*?` )\S|\S)\*(?=\s|$)/, (match, text, position, parseText) => { | ||
const parseBold = combinator_1.explicit(combinator_1.regexp(/^\*(\S([^*\n]*?|[^*\n]*? `.*?` )\S|\S)\*(?=[\s.,]|$)/, (match, text, position, parseText) => { | ||
const [matchedText, content] = match; | ||
@@ -36,3 +36,3 @@ return [ | ||
})); | ||
const parseItalic = combinator_1.explicit(combinator_1.regexp(/^_(\S([^_\n]*?|[^_\n]*? `.*?` )\S|\S)\_(?=\s|$)/, (match, text, position, parseText) => { | ||
const parseItalic = combinator_1.explicit(combinator_1.regexp(/^_(\S([^_\n]*?|[^_\n]*? `.*?` )\S|\S)\_(?=[\s.,]|$)/, (match, text, position, parseText) => { | ||
const [matchedText, content] = match; | ||
@@ -47,3 +47,3 @@ return [ | ||
})); | ||
const parseStrike = combinator_1.explicit(combinator_1.regexp(/^~(\S([^~\n]*?|[^~\n]*? `.*?` )\S|\S)\~(?=\s|$)/, (match, text, position, parseText) => { | ||
const parseStrike = combinator_1.explicit(combinator_1.regexp(/^~(\S([^~\n]*?|[^~\n]*? `.*?` )\S|\S)\~(?=[\s.,]|$)/, (match, text, position, parseText) => { | ||
const [matchedText, content] = match; | ||
@@ -50,0 +50,0 @@ return [ |
{ | ||
"name": "slack-message-parser", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Parser for Slack message", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -7,3 +7,3 @@ import { NodeType } from './types/Node' | ||
regexp( | ||
/^\*(\S([^*\n]*?|[^*\n]*? `.*?` )\S|\S)\*(?=\s|$)/, | ||
/^\*(\S([^*\n]*?|[^*\n]*? `.*?` )\S|\S)\*(?=[\s.,]|$)/, | ||
(match, text, position, parseText) => { | ||
@@ -53,3 +53,3 @@ const [matchedText, content] = match | ||
regexp( | ||
/^_(\S([^_\n]*?|[^_\n]*? `.*?` )\S|\S)\_(?=\s|$)/, | ||
/^_(\S([^_\n]*?|[^_\n]*? `.*?` )\S|\S)\_(?=[\s.,]|$)/, | ||
(match, text, position, parseText) => { | ||
@@ -71,3 +71,3 @@ const [matchedText, content] = match | ||
regexp( | ||
/^~(\S([^~\n]*?|[^~\n]*? `.*?` )\S|\S)\~(?=\s|$)/, | ||
/^~(\S([^~\n]*?|[^~\n]*? `.*?` )\S|\S)\~(?=[\s.,]|$)/, | ||
(match, text, position, parseText) => { | ||
@@ -74,0 +74,0 @@ const [matchedText, content] = match |
Sorry, the diff of this file is not supported yet
30531