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