Written tests for contains, in_array and getDomainFromUrl.

This commit is contained in:
Mario Basic
2015-06-30 17:46:37 +02:00
parent 12b153b323
commit 9598a53788
4 changed files with 32 additions and 1 deletions

View File

@@ -18,7 +18,7 @@ function contains(line, list) {
if(cleanLine === '') continue;
// If line contains the clean line return true
if (line.indexOf(cleanLine) > - 1) {
if (cleanLine.indexOf(line) > - 1) {
return true;
}
}