Skip to content
Permalink
Browse files

Better typechecking

  • Loading branch information...
nieldlr committed Feb 24, 2019
1 parent 99abbb0 commit c997a622d53136271bf65436f0b64b8a048e3f5b
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/dictionary.js
@@ -147,7 +147,7 @@ function dictionarySearch(character, type) {
}

//If there's nothing to be found, then try and look for traditional entries.
if (search == '') {
if (search.length == 0) {
for (word in dictionarytraditional) {
if (dictionarytraditional.hasOwnProperty(word)) {
if (word.search(re) != -1) {

0 comments on commit c997a62

Please sign in to comment.
You can’t perform that action at this time.