Skip to content

Commit

Permalink
fix: compatible types
Browse files Browse the repository at this point in the history
  • Loading branch information
divy9881 committed May 6, 2020
1 parent 5cf950a commit 58242a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function replaceEval(s: string, rule: string): string {

// getEvalValue returns the parameters of function eval
function getEvalValue(s: string): string[] {
const subMatch: any = s.match(evalReg);
const subMatch: string[] = s.match(evalReg) as string[];
const rules: string[] = [];
for (const rule of subMatch) {
const index: number = rule.search('(');
Expand Down

0 comments on commit 58242a5

Please sign in to comment.