Skip to content

Settings: Add versionHash class to info rows#3134

Closed
Sqaaakoi wants to merge 1 commit into
Vendicated:mainfrom
Sqaaakoi:settings-info-rows-versionHash
Closed

Settings: Add versionHash class to info rows#3134
Sqaaakoi wants to merge 1 commit into
Vendicated:mainfrom
Sqaaakoi:settings-info-rows-versionHash

Conversation

@Sqaaakoi
Copy link
Copy Markdown
Contributor

@Sqaaakoi Sqaaakoi commented Jan 9, 2025

This prevents the Vencord git hash from being transformed

This prevents the Vencord git hash from being transformed
props = props.replace(/children:\[.+\]/, "");
match: /\[\(0,\i\.jsxs?\)\((.{1,10}),(\{[^{}}]+\{.{0,20}(\i\.versionHash),.+?\})\)," "/,
replace: (m, component, props, versionHash) => {
props = props.replace(/children:\[.+\]/, "").replace(/className:/, `$&${versionHash}+" "+`);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
props = props.replace(/children:\[.+\]/, "").replace(/className:/, `$&${versionHash}+" "+`);
props = props.replace(/children:\[.+\]/, "").replace("className:", `$&${versionHash}+" "+`);

@Vendicated Vendicated closed this Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants