All notable changes to this project will be documented in this file.
This project adheres to Semantic Versioning.
- Accept
~
in custom emote names, to support Discord-style deduplicated names.
- Port to typescript, and provide type definitions.
- Fix www. link hrefs.
- Use rollup build.
- Require 100% test coverage.
- Use loose compilation in
@babel/preset-env
.
- Inline url-regex module with some of its features removed. In particular, remove the 4KB mingz whitelist of top-level domains.
- Make :emoji: case insensitive.
- Use url-regex module for better URL matching.
- Fix parsing of mentions ending in punctuation, followed by punctuation, such as the mention "Test!" in "@Test!!!".
- Only allow string inputs. Fixes an issue where passing an array (eg. a
message that was already parsed) would send
u-wave-parse-chat-markup
into an infinite loop.
- Fix parsing of mentions ending in punctuation at the very end of a message.
- Fix parsing of mentions ending in punctuation, like "User[AFK]".
- Fix parsing of emoji shortcodes with + or - signs in them, like 👍 or 👎.
-
Mentions are not limited to user objects, pass strings instead:
mentions: ['username', 'groupname']
-
Mentions are case-insensitive.
-
Mentions immediately followed by punctuation now work.