prefer const over let

This commit is contained in:
Joffrey JAFFEUX 2017-06-05 14:35:27 +02:00
parent f8e5cbd81a
commit ba07ae67fb
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ export function setup(helper) {
} }
let between; let between;
let emojiNameMatch = text.match(/(?:.*?)(:(?!:).?[\w-]*(?::t\d)?:)/); const emojiNameMatch = text.match(/(?:.*?)(:(?!:).?[\w-]*(?::t\d)?:)/);
if (emojiNameMatch) { if (emojiNameMatch) {
between = emojiNameMatch[0].slice(1, -1); between = emojiNameMatch[0].slice(1, -1);
} else { } else {