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() {
2138 if (!pattern) {2138 if (!pattern) {
2139 throw new Error('Argument of \'pattern=\' cannot be empty');2139 throw new Error('Argument of \'pattern=\' cannot be empty');
2140 }2140 }
2141 let re = regexFromString(pattern.toString());2141 const re = regexFromString(pattern.toString());
2142 if (!re) {2142 if (!re) {
2143 throw new Error('The value of \'pattern\' argument is not a valid regular expression.');2143 throw new Error('The value of \'pattern\' argument is not a valid regular expression.');
2144 }2144 }