@atomist/slack-messages
Advanced tools
Comparing version 1.2.2-master.20210224151634 to 1.2.2-master.20210315175954
@@ -14,2 +14,6 @@ # Changelog | ||
### Fixed | ||
- Fix converting structures that look almost like links. [#48](https://github.com/atomist/slack-messages/issues/48) | ||
## [1.2.0](https://github.com/atomist/slack-messages/compare/1.1.2...1.2.0) - 2020-10-07 | ||
@@ -16,0 +20,0 @@ |
@@ -90,3 +90,3 @@ "use strict"; | ||
function convertLinks(text) { | ||
return text.replace(/\[(.+?)\]\((.+?)\)/g, "<$2|$1>"); | ||
return text.replace(/\[([^\]]+?)\]\((.+?)\)/g, "<$2|$1>"); | ||
} | ||
@@ -93,0 +93,0 @@ exports.convertLinks = convertLinks; |
{ | ||
"name": "@atomist/slack-messages", | ||
"version": "1.2.2-master.20210224151634", | ||
"version": "1.2.2-master.20210315175954", | ||
"description": "Atomist utilities for creating formatted Slack messages", | ||
@@ -5,0 +5,0 @@ "author": { |
Sorry, the diff of this file is not supported yet
70344