Permalink
Browse files
fix line count not updating problem
- Loading branch information...
Showing
with
1 addition
and
1 deletion.
-
+1
−1
app/services/os-datastore.js
|
|
@@ -317,7 +317,7 @@ module.exports.readContents = function(descriptor, options) { |
|
|
descriptor.data = data;
|
|
|
descriptor.countOfLines = 0;
|
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
if (data[i] == '\n') {
|
|
|
if (data[i] == '\n' || data[i] == 10) {
|
|
|
descriptor.countOfLines ++;
|
|
|
}
|
|
|
}
|
|
|
|
0 comments on commit
e7b731c