changes
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user