aboutsummaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2020-03-31 18:10:44 +0300
committerRblSb <msrblsb@gmail.com>2020-03-31 18:10:44 +0300
commitf0791a52155dfe9bce2c3ba55959551d100efe68 (patch)
treec08169afaa8a7ff389de57f42b1733b02576ac93 /src/client
parenta9a5e20324998a15432e90581666e8f72aeca8af (diff)
Some improvements
Diffstat (limited to 'src/client')
-rw-r--r--src/client/Main.hx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/Main.hx b/src/client/Main.hx
index b0b295e..5644fdd 100644
--- a/src/client/Main.hx
+++ b/src/client/Main.hx
@@ -477,8 +477,8 @@ class Main {
for (emote in config.emotes) {
final tag = emote.image.endsWith("mp4") ? 'video autoplay="" loop=""' : "img";
filters.push({
- regex: new EReg("(^| )" + escapeRegExp(emote.name) + "($| )", "g"),
- replace: '$1<$tag class="channel-emote" src="${emote.image}" title="${emote.name}"/>$2'
+ regex: new EReg("(^| )" + escapeRegExp(emote.name) + "(?!\\S)", "g"),
+ replace: '$1<$tag class="channel-emote" src="${emote.image}" title="${emote.name}"/>'
});
}
final smilesWrap = ge("#smileswrap");
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage