deesmateen / jquery-spellchecker

Automatically exported from code.google.com/p/jquery-spellchecker
0 stars 0 forks source link

Regular expression problem #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Looks like puncExp ('^\\W|[\\W]+\\W|\\W$|\\n|\\t|\\s{2,}') doesn't work 
with words that begin with a german Umlaut like ä,Ä,ü,Ü,ö,Ö. Example for 
such a word: Änderungen.

Original issue reported on code.google.com by fredeckb...@googlemail.com on 11 Feb 2010 at 8:18

GoogleCodeExporter commented 8 years ago
Hi. Please can you try with the latest revision, I have changed the regex to 
match
special characters.

Original comment by willis...@gmail.com on 11 Feb 2010 at 8:21

GoogleCodeExporter commented 8 years ago

Original comment by willis...@gmail.com on 11 Feb 2010 at 8:22

GoogleCodeExporter commented 8 years ago
I've seen that there is an new version of puncExp:
'^[^a-zA-Z\\u00A1-\\uFFFF]|[^a-zA-Z\\u00A1-\\uFFFF]+[^a-zA-Z\\u00A1-\\uFFFF]|[^a
-zA-
Z\\u00A1-\\uFFFF]$|\\n|\\t|\\s{2,}'

That works!

Original comment by fredeckb...@googlemail.com on 11 Feb 2010 at 8:23

GoogleCodeExporter commented 8 years ago
glad to hear it works, thanks

Original comment by willis...@gmail.com on 11 Feb 2010 at 11:40

GoogleCodeExporter commented 8 years ago

Original comment by willis...@gmail.com on 12 Feb 2010 at 2:25