1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-02 16:08:31 +00:00

eslint: unnecessary escape; prefer const

This commit is contained in:
lemonslut 2025-06-08 01:11:50 -06:00
parent ec6969aeb7
commit 0b21c72b30
No known key found for this signature in database

View file

@ -149,7 +149,7 @@
import {get} from 'utilities/object'; import {get} from 'utilities/object';
const TITLE_MATCH = /^(.+?)?\s*v?(\d+\.\d+\.\d+(?:\-[a-z0-9-]+)?)$/i, const TITLE_MATCH = /^(.+?)?\s*v?(\d+\.\d+\.\d+(?:-[a-z0-9-]+)?)$/i,
SETTING_REGEX = /\]\(~([^)]+)\)/g, SETTING_REGEX = /\]\(~([^)]+)\)/g,
CHANGE_REGEX = /^\*\s*([^:]+?):\s*(.+)$/i, CHANGE_REGEX = /^\*\s*([^:]+?):\s*(.+)$/i,
ISSUE_REGEX = /(^|\s)#(\d+)\b/g; ISSUE_REGEX = /(^|\s)#(\d+)\b/g;
@ -186,13 +186,13 @@ export default {
old_commit = this.t('home.changelog.nonversioned', 'Non-Versioned Commit'); old_commit = this.t('home.changelog.nonversioned', 'Non-Versioned Commit');
for(const commit of this.commits) { for(const commit of this.commits) {
const input = commit.commit.message; const input = commit.commit.message,
sections = {};
let title = old_commit, let title = old_commit,
title_nav = null, title_nav = null,
icon = null, icon = null,
version = null, version = null,
author = null, author = null,
sections = {},
description = []; description = [];
if ( /\bskiplog\b/i.test(input) && ! this.nonversion ) if ( /\bskiplog\b/i.test(input) && ! this.nonversion )
@ -384,4 +384,4 @@ export default {
} }
} }
} }
</script> </script>