Merge branch 'dev'

This commit is contained in:
thororen1234 2026-04-01 12:09:53 -04:00
commit 76cce5a035
No known key found for this signature in database
5 changed files with 11 additions and 8 deletions

View file

@ -1,7 +1,7 @@
{
"name": "equicord",
"private": "true",
"version": "1.14.6.1",
"version": "1.14.6.2",
"description": "The other cutest Discord client mod",
"homepage": "https://github.com/Equicord/Equicord#readme",
"bugs": {
@ -125,4 +125,4 @@
"engines": {
"node": ">=18"
}
}
}

View file

@ -256,7 +256,7 @@ export default definePlugin({
{
find: "[aria-owns=folder-items-",
replacement: {
match: /"data-dnd-name":(\i)\.name,(?="data-drop-hovering".{0,100}formatToPlainString\()/,
match: /"data-dnd-name":(\i)\.name,(?="data-drop-hovering".{0,300}"aria-selected":\i\}\)\}\))/,
replace: "$&draggable:!0,onDragStart:e=>$self.onGuildDragStart(e,$1.id),"
}
},

View file

@ -57,6 +57,9 @@ export default definePlugin({
},
{
find: '"#{intl::APP_TAG::hash}":',
// This matches the intl bundle, english is always loaded as a fallback bundle
// if the users language is not english, we need to apply to both because the load order is random
all: true,
predicate: () => settings.store.noAppsAllowed,
replacement: {
match: /(#{intl::APP_TAG::hash}":\[").*?("\])/,

View file

@ -136,8 +136,8 @@ export default definePlugin({
group: true,
replacement: [
{
match: /\.CHANNEL\(\i\.id.{0,25}\)\(\)\);/,
replace: "$&const vc_SidebarChat=$self.renderSidebar();"
match: /if\(null!=.{0,50}ROLE_SUBSCRIPTIONS/,
replace: "const vc_SidebarChat=$self.renderSidebar();$&"
},
{
match: /return(\(0,\i\.jsxs?\)\(\i\.\i,{}\))}/,

View file

@ -22,10 +22,10 @@ import { Patch, PatchReplacement, ReplaceFn } from "./types";
export function canonicalizeMatch<T extends RegExp | string>(match: T): T {
let partialCanon = typeof match === "string" ? match : match.source;
partialCanon = partialCanon.replaceAll(/#{intl::([\w$+/]*)(?:::(\w+))?}/g, (_, key, modifier) => {
const hashed = modifier === "raw" ? key : runtimeHashMessageKey(key);
if (modifier === "hash") return hashed;
const isString = typeof match === "string";
const hashed = modifier === "raw" ? key : runtimeHashMessageKey(key);
if (modifier === "hash") return isString ? hashed : String.raw`(?:${hashed})`.replaceAll("+", "\\+");
const hasSpecialChars = !Number.isNaN(Number(hashed[0])) || hashed.includes("+") || hashed.includes("/");
if (hasSpecialChars) {