mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 02:09:28 +08:00
prefer const over let
This commit is contained in:
parent
f8e5cbd81a
commit
ba07ae67fb
|
@ -82,7 +82,7 @@ export function setup(helper) {
|
|||
}
|
||||
|
||||
let between;
|
||||
let emojiNameMatch = text.match(/(?:.*?)(:(?!:).?[\w-]*(?::t\d)?:)/);
|
||||
const emojiNameMatch = text.match(/(?:.*?)(:(?!:).?[\w-]*(?::t\d)?:)/);
|
||||
if (emojiNameMatch) {
|
||||
between = emojiNameMatch[0].slice(1, -1);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user