mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-08 12:38:39 +00:00
Don't change global prototype: local utils.indexOf
Auditors: eater
This commit is contained in:
@@ -363,7 +363,7 @@ Parser.prototype.parseNucleus = function(pos) {
|
||||
if (group) {
|
||||
return new ParseResult(
|
||||
new ParseNode("sizing", {
|
||||
size: "size" + (sizeFuncs.indexOf(nucleus.type) + 1),
|
||||
size: "size" + (utils.indexOf(sizeFuncs, nucleus.type) + 1),
|
||||
value: group.result
|
||||
}),
|
||||
group.position);
|
||||
|
Reference in New Issue
Block a user