Prefer const. I love const

6aeced98a6a1fdbebc0dd6110119f8f8424904c3

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Showing whitespace changes
public/scripts/slash-commands.js+1 -1
@@ -2138,7 +2138,7 @@ export function initDefaultSlashCommands() {
21382138 if (!pattern) {
21392139 throw new Error('Argument of \'pattern=\' cannot be empty');
21402140 }
21412141 letconst re = regexFromString(pattern.toString());
21422142 if (!re) {
21432143 throw new Error('The value of \'pattern\' argument is not a valid regular expression.');
21442144 }