compute-anagram-hash
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -327,3 +327,5 @@ /** | ||
// [3] Join the sorted characters to create a hash key. | ||
return str.split( '' ) | ||
return str.toLowerCase() | ||
.replace( /[^a-z0-9]/g, '' ) | ||
.split( '' ) | ||
.sort( ascending ) | ||
@@ -330,0 +332,0 @@ .join( '' ); |
{ | ||
"name": "compute-anagram-hash", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Anagram hash table.", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -110,3 +110,5 @@ Anagram Hash | ||
__Note__: the returned __key__ only contains lowercase `alphanumeric` characters. | ||
#### hash.keys( [opts] ) | ||
@@ -113,0 +115,0 @@ |
19657
437
265