kopia lustrzana https://github.com/mifi/lossless-cut
reformat
rodzic
079562e845
commit
4f4799b6f8
|
@ -79,7 +79,7 @@ export async function parseCutlist(clStr: string) {
|
||||||
};
|
};
|
||||||
const iniValue = {};
|
const iniValue = {};
|
||||||
const lines = clStr.split(/[\n\r]+/);
|
const lines = clStr.split(/[\n\r]+/);
|
||||||
let section:string|null|undefined = null;
|
let section: string | null | undefined = null;
|
||||||
lines.forEach((line) => {
|
lines.forEach((line) => {
|
||||||
if (regex.comment.test(line)) {
|
if (regex.comment.test(line)) {
|
||||||
return;
|
return;
|
||||||
|
@ -109,7 +109,7 @@ export async function parseCutlist(clStr: string) {
|
||||||
|
|
||||||
let found = true;
|
let found = true;
|
||||||
let i = 0;
|
let i = 0;
|
||||||
const cutArr:{start:number, end:number, name:string}[] = [];
|
const cutArr: { start: number, end: number, name: string }[] = [];
|
||||||
while (found) {
|
while (found) {
|
||||||
const cutEntry = iniValue[`Cut${i}`];
|
const cutEntry = iniValue[`Cut${i}`];
|
||||||
if (cutEntry) {
|
if (cutEntry) {
|
||||||
|
|
Ładowanie…
Reference in New Issue