Written tests for contains, in_array and getDomainFromUrl.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user