Skip to content

Commit

Permalink
fix: convert
Browse files Browse the repository at this point in the history
  • Loading branch information
adproqwq committed Mar 1, 2024
1 parent 4094e98 commit fdd6a1f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/convert.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import json5 from 'json5';
import fs from 'node:fs/promises';
import { getJsonArrayLength } from "./method";

function getJsonArrayLength(jsonArray){
let length = 0;
for(let i in jsonArray){
length++;
}
return length;
};

function textRuleConvert(lttRule){
let temp = lttRule.split('&');
Expand Down

0 comments on commit fdd6a1f

Please sign in to comment.