Prefer const. I love const
| @@ -2138,7 +2138,7 @@ export function initDefaultSlashCommands() { | ||
| 2138 | 2138 | if (!pattern) { |
| 2139 | 2139 | throw new Error('Argument of \'pattern=\' cannot be empty'); |
| 2140 | 2140 | } |
| 2141 | 2141 | letconst re = regexFromString(pattern.toString()); |
| 2142 | 2142 | if (!re) { |
| 2143 | 2143 | throw new Error('The value of \'pattern\' argument is not a valid regular expression.'); |
| 2144 | 2144 | } |