mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-10-12 22:11:58 +00:00
Refactor chat line rendering to support lines with system messages, making it possible to customize the rendering of re-sub messages and eventually other types, like purchases. Fix the emote data structure being all screwed up in self-sent /me commands.
This commit is contained in:
parent
6c4966166a
commit
2e5fe7f177
7 changed files with 173 additions and 73 deletions
|
@ -167,6 +167,13 @@ export function maybe_call(fn, ctx, ...args) {
|
|||
}
|
||||
|
||||
|
||||
const SPLIT_REGEX = /[^\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDFFF]/g;
|
||||
|
||||
export function split_chars(str) {
|
||||
return str.match(SPLIT_REGEX);
|
||||
}
|
||||
|
||||
|
||||
export class SourcedSet {
|
||||
constructor() {
|
||||
this._cache = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue