Simplify if statement
This commit is contained in:
@@ -340,11 +340,7 @@
|
|||||||
// Pre-base vowel signs of Indic languages. A vowel sign is called pre-base if
|
// Pre-base vowel signs of Indic languages. A vowel sign is called pre-base if
|
||||||
// consonant + vowel becomes [vowel][consonant] when rendered. Eg: ക + െ => കെ
|
// consonant + vowel becomes [vowel][consonant] when rendered. Eg: ക + െ => കെ
|
||||||
var prebases = "െേൈൊോൌெேைொோௌେୈୋୌિਿिিেৈোৌෙේෛොෝෞ";
|
var prebases = "െേൈൊോൌெேைொோௌେୈୋୌિਿिিেৈোৌෙේෛොෝෞ";
|
||||||
if ( prebases.indexOf( string[prefix.length] ) > 0 ) {
|
return prebases.indexOf( string[prefix.length] ) <= 0;
|
||||||
return false;
|
|
||||||
} else {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} ( jQuery ) );
|
} ( jQuery ) );
|
||||||
|
|||||||
Reference in New Issue
Block a user