This commit is contained in:
2023-10-18 08:52:39 -04:00
parent e2a30c4858
commit 69bb15c46d
3 changed files with 6 additions and 12 deletions

View File

@@ -8,11 +8,9 @@ class FileChunker {
let offset=0;
do {
let nextOffset=Template.indexOf(pattern,offset);
console.log("Nextoffset:"+nextOffset);
if (nextOffset>=0) {
this.Chunks.push(Template.substring(offset,nextOffset));
offset=nextOffset+pattern.length;
console.log("Offset:"+offset);
}
else {
this.Chunks.push(Template.substring(offset));