Skip to content

Commit

Permalink
Make emEnd const
Browse files Browse the repository at this point in the history
Co-authored-by: Tony Brix <tony@brix.ninja>
  • Loading branch information
calculuschild and UziTech committed Jul 9, 2020
1 parent 1fb141d commit ad720c1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Tokenizer.js
Expand Up @@ -517,9 +517,7 @@ module.exports = class Tokenizer {

if (match && (!match[1] || (match[1] && (prevChar === '' || this.rules.inline.punctuation.exec(prevChar))))) {
maskedSrc = maskedSrc.slice(-1 * src.length);
let emEnd;

if (match[0] === '*') { emEnd = this.rules.inline.emEndAst; } else { emEnd = this.rules.inline.emEndUnd; }
const emEnd = match[0] === '*' ? this.rules.inline.emEndAst : this.rules.inline.emEndUnd;

emEnd.lastIndex = 0;

Expand Down

0 comments on commit ad720c1

Please sign in to comment.