prefer const over let
This commit is contained in:
parent
f8e5cbd81a
commit
ba07ae67fb
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue