aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/clearURLs
diff options
context:
space:
mode:
authorVen <vendicated@riseup.net>2022-10-06 00:42:58 +0200
committerGitHub <noreply@github.com>2022-10-06 00:42:58 +0200
commit74c3930e0a5ed264f330bc32c27116ead1063c5d (patch)
treea29ba43787c8cf8bbee648b5b478a8152086f965 /src/plugins/clearURLs
parente563521416052808bcec57057b921f0c0b6ca594 (diff)
downloadVencord-74c3930e0a5ed264f330bc32c27116ead1063c5d.tar.gz
Vencord-74c3930e0a5ed264f330bc32c27116ead1063c5d.tar.bz2
Vencord-74c3930e0a5ed264f330bc32c27116ead1063c5d.zip
add eslint config (#53)
* eslint * workflow * lint main
Diffstat (limited to 'src/plugins/clearURLs')
-rw-r--r--src/plugins/clearURLs/index.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/clearURLs/index.ts b/src/plugins/clearURLs/index.ts
index abdeefd..c9bf2ed 100644
--- a/src/plugins/clearURLs/index.ts
+++ b/src/plugins/clearURLs/index.ts
@@ -90,7 +90,7 @@ export default definePlugin({
}
// Check all universal rules
- this.universalRules.forEach((rule) => {
+ this.universalRules.forEach(rule => {
url.searchParams.forEach((_value, param, parent) => {
this.removeParam(rule, param, parent);
});
@@ -99,7 +99,7 @@ export default definePlugin({
// Check rules for each hosts that match
this.hostRules.forEach((regex, hostRuleName) => {
if (!regex.test(url.hostname)) return;
- this.rulesByHost.get(hostRuleName).forEach((rule) => {
+ this.rulesByHost.get(hostRuleName).forEach(rule => {
url.searchParams.forEach((_value, param, parent) => {
this.removeParam(rule, param, parent);
});
@@ -114,7 +114,7 @@ export default definePlugin({
if (msg.content.match(/http(s)?:\/\//)) {
msg.content = msg.content.replace(
/(https?:\/\/[^\s<]+[^<.,:;"'>)|\]\s])/g,
- (match) => this.replacer(match)
+ match => this.replacer(match)
);
}
},