Skip to content

Commit 3694fff

Browse files
authored
Give warning when "NaN"s found
1 parent bb2961d commit 3694fff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validators/tsv.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ var TSV = function TSV (file, contents, fileList, callback) {
6868
character: "at column # " + (j+1),
6969
code: 23
7070
}));
71-
} else if ((value === "NA" || value === "na" || value === "nan") && !NACells) {
71+
} else if ((value === "NA" || value === "na" || value === "nan" || value === "NaN") && !NACells) {
7272
NACells = true;
7373
// check if missing value is properly labeled as 'n/a'
7474
issues.push(new Issue({

0 commit comments

Comments
 (0)