We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 701b4a1 commit cb8329cCopy full SHA for cb8329c
parser.js
@@ -5,6 +5,7 @@ var USER_2 = "Daniel Salomon"
5
var DATE_START = 0
6
var DATE_END = 15
7
var USER_START = 17
8
+var TIME_DIFFERENCE = 2
9
10
11
@@ -73,7 +74,7 @@ function groupTexts(data){
73
74
let timeDifference = Math.abs(date2.getTime() - date1.getTime());
75
let differentHours = Math.ceil(timeDifference / (1000 * 3600));
76
- if(differentHours > 2){
77
+ if(differentHours > TIME_DIFFERENCE){
78
line = line + "\n"
79
boolean = false
80
}
@@ -136,6 +137,5 @@ Date.prototype.addHours= function(h){
136
137
var input = fs.createReadStream('chat_full.txt');
138
139
// parses Text with given input
-// func is the given parsing function
140
parseText(input);
141
0 commit comments