Skip to content

Commit

Permalink
Merge pull request #58 from pincombe/patch-1
Browse files Browse the repository at this point in the history
Remove duplicate words
  • Loading branch information
lux authored Jun 13, 2019
2 parents 2cc1dbe + 9b03b10 commit 37fe4e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion URLify.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public static function add_chars ($map)
public static function remove_words ($words)
{
$words = is_array ($words) ? $words : array ($words);
self::$remove_list = array_merge (self::$remove_list, $words);
self::$remove_list = array_unique (array_merge (self::$remove_list, $words));
}

/**
Expand Down

0 comments on commit 37fe4e7

Please sign in to comment.