Skip to content

Error in parse funcion #3

Description

@GoogleCodeExporter
Hi everybody!
I've found an error in BJSpell.js inside the parse function. This code:

if((re === "." || new RegExp(re + "$").test(seek)) && this.words[seek]){
result = true;
break;
}

has to be like this:

if((re === "." || new RegExp(re + "$").test(seek)) && this.words[seek] && new 
RegExp(".*" + select + ".*").test(this.words[seek])){                           
 result = true;
break;
}

otherwise the suffix rules will be applicate words that are not involved by the 
rule.

Cheers

Original issue reported on code.google.com by quattord...@gmail.com on 18 Oct 2012 at 10:32

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions