Skip to content

Commit

Permalink
[test] replace includes with indexOf
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed Omar committed Oct 4, 2019
1 parent 9bf3747 commit 68c9541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parse.js
Expand Up @@ -407,7 +407,7 @@ test('parse()', function (t) {
return parseFloat(str);
}

if (str && typeof str === 'string' && str.includes(',')) {
if (str && typeof str === 'string' && str.indexOf(',') > -1) {
return str.split(',').map(function (item) {
if (!isNaN(item)) {
return parseFloat(item);
Expand Down

0 comments on commit 68c9541

Please sign in to comment.