slack-message-parser
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -10,2 +10,8 @@ # Changelog | ||
## [1.0.6] - 2019-11-08 | ||
### Fixed | ||
- Fix the parser treats other special characters as emoji name (Issue: [#22](https://github.com/pocka/slack-message-parser/issues/22), PR: [#23](https://github.com/pocka/slack-message-parser/pull/23)). | ||
## [1.0.5] - 2019-08-29 | ||
@@ -12,0 +18,0 @@ |
@@ -84,3 +84,3 @@ "use strict"; | ||
})); | ||
const parseEmoji = combinator_1.regexp(/^:([^:<]+?):(:(skin-tone-.+?):)?/, (match, text, position) => { | ||
const parseEmoji = combinator_1.regexp(/^:([^:<`*#@!\s]+):(:(skin-tone-.+?):)?/, (match, text, position) => { | ||
const [matchedText, name, _, variation] = match; | ||
@@ -87,0 +87,0 @@ return [ |
{ | ||
"name": "slack-message-parser", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Parser for Slack message", | ||
@@ -11,3 +11,5 @@ "main": "lib/index.js", | ||
"lint": "tslint -c tslint.json 'src/**/*.ts'", | ||
"prepublishOnly": "npm run build" | ||
"prepublishOnly": "npm run build", | ||
"docs": "vuepress dev docs", | ||
"docs:build": "vuepress build docs" | ||
}, | ||
@@ -37,2 +39,3 @@ "repository": { | ||
"typescript": "^3.0.3", | ||
"vuepress": "^1.2.0", | ||
"yarn": "^1.9.4" | ||
@@ -39,0 +42,0 @@ }, |
# slack-message-parser | ||
[![npm](https://flat.badgen.net/npm/v/slack-message-parser?icon=npm)](https://www.npmjs.com/package/slack-message-parser) | ||
[![code style: prettier](https://flat.badgen.net/badge/code%20style/prettier/ff69b4)](https://github.com/prettier/prettier) | ||
[![travis](https://flat.badgen.net/travis/pocka/slack-message-parser?icon=travis)](https://travis-ci.com/pocka/slack-message-parser#) | ||
[![codecov](https://flat.badgen.net/codecov/c/github/pocka/slack-message-parser?icon=codecov)](https://codecov.io/gh/pocka/slack-message-parser) | ||
[![npm](https://img.shields.io/github/package-json/v/pocka/slack-message-parser)](https://www.npmjs.com/package/slack-message-parser) | ||
[![travis](https://img.shields.io/travis/com/pocka/slack-message-parser)](https://travis-ci.com/pocka/slack-message-parser#) | ||
[![codecov](https://img.shields.io/codecov/c/github/pocka/slack-message-parser)](https://codecov.io/gh/pocka/slack-message-parser) | ||
[![Status for docs deploying](https://github.com/pocka/slack-message-parser/workflows/Deploy%20Docs/badge.svg)](https://github.com/pocka/slack-message-parser/actions) | ||
Parser library for [Slack message format](https://api.slack.com/docs/message-formatting). | ||
[[Document](https://pocka.github.io/slack-message-parser/)] | ||
## Install | ||
@@ -11,0 +14,0 @@ |
@@ -126,3 +126,3 @@ import { NodeType } from './types/Node' | ||
const parseEmoji = regexp( | ||
/^:([^:<]+?):(:(skin-tone-.+?):)?/, | ||
/^:([^:<`*#@!\s]+):(:(skin-tone-.+?):)?/, | ||
(match, text, position) => { | ||
@@ -129,0 +129,0 @@ const [matchedText, name, _, variation] = match |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
637085
45
1024
73
11