Prefer const. I love const

This commit is contained in:
Cohee
2025-04-29 21:22:51 +03:00
parent 6cb1eb3fe6
commit 6aeced98a6

View File

@ -2138,7 +2138,7 @@ export function initDefaultSlashCommands() {
if (!pattern) {
throw new Error('Argument of \'pattern=\' cannot be empty');
}
let re = regexFromString(pattern.toString());
const re = regexFromString(pattern.toString());
if (!re) {
throw new Error('The value of \'pattern\' argument is not a valid regular expression.');
}