Fix typo (replacing strings by program and not checking the results is a bad idea)
This commit is contained in:
parent
3e31d808dc
commit
c7d9bc1aee
|
@ -12,10 +12,10 @@ function parseSingleKaTeXMacro(src: string): [string, KaTeXMacro] {
|
||||||
return pos;
|
return pos;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!src.startsWith("\\newmacro") || src.slice(-1) !== "}")
|
if (!src.startsWith("\\newcommand") || src.slice(-1) !== "}")
|
||||||
return invalid;
|
return invalid;
|
||||||
|
|
||||||
// current index we are checking (= "\\newmacro".length)
|
// current index we are checking (= "\\newcommand".length)
|
||||||
let currentPos: number = 11;
|
let currentPos: number = 11;
|
||||||
currentPos = skipSpaces(currentPos);
|
currentPos = skipSpaces(currentPos);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue