ddf-validation
Advanced tools
Comparing version 0.12.14 to 0.12.15
@@ -0,1 +1,6 @@ | ||
<a name="0.12.15"></a> | ||
## [0.12.15](https://github.com/Gapminder/ddf-validation/compare/v0.12.14...v0.12.15) (2016-10-12) | ||
<a name="0.12.14"></a> | ||
@@ -2,0 +7,0 @@ ## [0.12.14](https://github.com/Gapminder/ddf-validation/compare/v0.12.13...v0.12.14) (2016-10-12) |
@@ -10,5 +10,6 @@ 'use strict'; | ||
function isExcludedDirectory(currentDirectory, excludedDirectory) { | ||
const EXCLUDED_DIRECTORY_PATTERN = new RegExp(`${pathModule.sep}${excludedDirectory}${pathModule.sep}?`); | ||
return EXCLUDED_DIRECTORY_PATTERN.test(currentDirectory); | ||
return (_ | ||
.split(currentDirectory, pathModule.sep) | ||
.filter(dir => dir === excludedDirectory) | ||
).length > 0; | ||
} | ||
@@ -15,0 +16,0 @@ |
@@ -5,2 +5,3 @@ 'use strict'; | ||
const csv = require('fast-csv'); | ||
const END_OF_LINE = require('os').EOL; | ||
@@ -114,3 +115,3 @@ /* eslint-disable */ | ||
const lines = fileData.split('\n'); | ||
const lines = fileData.split(END_OF_LINE); | ||
@@ -117,0 +118,0 @@ if (lines.length >= +lineNo) { |
{ | ||
"name": "ddf-validation", | ||
"version": "0.12.14", | ||
"version": "0.12.15", | ||
"description": "DDF validion tool", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
314851
3734