This repository has been archived on 2021-08-24. You can view files and clone it, but cannot push or open issues or pull requests.
cutthecord/resources/patches/pseudonitro-viewer/1150.patch

23 lines
1 KiB
Diff
Raw Normal View History

diff -crB com.discord-base/smali/com/discord/utilities/textprocessing/Rules.smali com.discord/smali/com/discord/utilities/textprocessing/Rules.smali
*** com.discord-base/smali/com/discord/utilities/textprocessing/Rules.smali 2020-05-27 16:23:07.799975486 +0300
--- com.discord/smali/com/discord/utilities/textprocessing/Rules.smali 2020-05-28 15:14:32.542156347 +0300
***************
*** 165,171 ****
sput-object v1, Lcom/discord/utilities/textprocessing/Rules;->PATTERN_UNICODE_EMOJI$delegate:Lkotlin/Lazy;
! const-string v1, "^<(a)?:([a-zA-Z_0-9]+):(\\d+)>"
.line 10
invoke-static {v1}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
--- 165,172 ----
sput-object v1, Lcom/discord/utilities/textprocessing/Rules;->PATTERN_UNICODE_EMOJI$delegate:Lkotlin/Lazy;
! # There's a ZWSP there
! const-string v1, "^<&??(a)?:([a-zA-Z_0-9]+):(\\d+)>"
.line 10
invoke-static {v1}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;