summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSanthosh Thottingal <santhosh.thottingal@gmail.com>2009-06-07 11:20:25 +0530
committerSanthosh Thottingal <santhosh.thottingal@gmail.com>2009-06-07 11:20:25 +0530
commit82fee73e256f17344f723316b2ba30b83994303a (patch)
treee15e51605eb5dbe88c22ed63d04eb68a7cf5d86a
parentb81278c14258c81c2ca3307491e74c504e84d26b (diff)
downloadRachana.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.py2
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: