From 82fee73e256f17344f723316b2ba30b83994303a Mon Sep 17 00:00:00 2001 From: Santhosh Thottingal Date: Sun, 7 Jun 2009 11:20:25 +0530 Subject: bug fix in same index comparison --- silpa/modules/soundex/charmap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit