lyndseybrowning / trie-prefix-tree

Create and modify trie prefix structures and extract word lists including prefixes, anagrams and sub-anagrams
48 stars 14 forks source link

Add case sensitivity option or document case insensitivity #13

Open axelpale opened 7 months ago

axelpale commented 7 months ago

Love the library. However, it was a painful experience to find out that the trie match is case insensitive. It seems that our system has skipped many workloads over the years that happened to have a lowercase name. The cause was that the workload with the uppercase name had already ran previously.

Therefore, please, add a case sensitivity option. And if that is not possible, maybe document it visibly so that users know what to expect.

The culprit line seems to be: src/index.js#L46

There is also a pending PR #11 from another user that implements the feature.