Skip to content

Commit

Permalink
fix: resolve endsWith is not a function error with style in reearth/c…
Browse files Browse the repository at this point in the history
…ore (#603)

fix: resolve AA.endsWith is not a function error with style in reearth/core
  • Loading branch information
pyshx authored Apr 7, 2023
1 parent 5a4a3de commit 15fec35
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/mantle/evaluator/simple/expression/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,9 @@ export class Node {
}
}

function cleanseNumberStringInput(input: string): string {
function cleanseNumberStringInput(input: any): any {
if (typeof input !== "string") return input;

const reservedWords = ["%"]; // add more reserved words if needed

for (const word of reservedWords) {
Expand Down

0 comments on commit 15fec35

Please sign in to comment.