Skip to content

Commit cb8329c

Browse files
committed
last changes
1 parent 701b4a1 commit cb8329c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

parser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ var USER_2 = "Daniel Salomon"
55
var DATE_START = 0
66
var DATE_END = 15
77
var USER_START = 17
8+
var TIME_DIFFERENCE = 2
89

910

1011

@@ -73,7 +74,7 @@ function groupTexts(data){
7374
let timeDifference = Math.abs(date2.getTime() - date1.getTime());
7475
let differentHours = Math.ceil(timeDifference / (1000 * 3600));
7576

76-
if(differentHours > 2){
77+
if(differentHours > TIME_DIFFERENCE){
7778
line = line + "\n"
7879
boolean = false
7980
}
@@ -136,6 +137,5 @@ Date.prototype.addHours= function(h){
136137
var input = fs.createReadStream('chat_full.txt');
137138

138139
// parses Text with given input
139-
// func is the given parsing function
140140
parseText(input);
141141

0 commit comments

Comments
 (0)