diff options
author | Santhosh Thottingal <santhosh.thottingal@gmail.com> | 2009-06-07 11:20:25 +0530 |
---|---|---|
committer | Santhosh Thottingal <santhosh.thottingal@gmail.com> | 2009-06-07 11:20:25 +0530 |
commit | 82fee73e256f17344f723316b2ba30b83994303a (patch) | |
tree | e15e51605eb5dbe88c22ed63d04eb68a7cf5d86a | |
parent | b81278c14258c81c2ca3307491e74c504e84d26b (diff) | |
download | Rachana.git-82fee73e256f17344f723316b2ba30b83994303a.tar.gz Rachana.git-82fee73e256f17344f723316b2ba30b83994303a.tar.xz Rachana.git-82fee73e256f17344f723316b2ba30b83994303a.zip |
bug fix in same index comparison
-rw-r--r-- | silpa/modules/soundex/charmap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/silpa/modules/soundex/charmap.py b/silpa/modules/soundex/charmap.py index 807222a..0679651 100644 --- a/silpa/modules/soundex/charmap.py +++ b/silpa/modules/soundex/charmap.py @@ -50,7 +50,7 @@ def charCompare(char1, char2): char2_index = charmap[lang].index(char2) if char1_index == -1 or char1_index == -1: return -1 - if char1_index == -1 or char1_index : return 1 + if char1_index == char2_index : return 1 def language(char): for lang in charmap: |