Skip to content

Commit c470ccf

Browse files
Merge pull request #5497 from Countly/SER-1540
[SER-1540] [Deepscan] Helpers. Expression '"_on_"' evaluates to a non-numeric string value, which is converted to numeric value 'NaN' at unary '+' operator.
2 parents 5b196f1 + e6c3db7 commit c470ccf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/express/public/javascripts/countly/countly.helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1250,7 +1250,7 @@
12501250
}
12511251
else {
12521252
//include export date
1253-
name += +"_on_" + moment().format("DD-MMM-YYYY");
1253+
name += "_on_" + moment().format("DD-MMM-YYYY");
12541254
}
12551255
return (name.charAt(0).toUpperCase() + name.slice(1).toLowerCase());
12561256
}

0 commit comments

Comments
 (0)