Skip to content

Commit

Permalink
add Ethiopic to language detection methods
Browse files Browse the repository at this point in the history
  • Loading branch information
billymoon committed Dec 4, 2016
1 parent d9edade commit 8df0374
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/language.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ var UNICODE_SCRIPTS = [
{ name: 'Arabic', src: '\u0600-\u06FF' },
{ name: 'Cyrillic', src: '\u0400-\u04FF' },
{ name: 'Devanagari', src: '\u0900-\u097F' },
{ name: 'Ethiopic', src: '\u1200-\u137F' },
{ name: 'Greek', src: '\u0370-\u03FF' },
{ name: 'Hangul', src: '\uAC00-\uD7AF\u1100-\u11FF' },
{ name: 'Han Kanji', src: '\u4E00-\u9FFF\uF900-\uFAFF' },
Expand Down
8 changes: 8 additions & 0 deletions test/tests/language.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,14 @@ namespace('String', function () {
test('सभी मनुष्यों', true, 'basic');
});

method('isEthiopic', function() {
test('አቡጊዳ', true, 'basic');
});

method('hasEthiopic', function() {
test('አቡጊዳ', true, 'basic');
});

method('isLatin', function() {
test('ā', true, 'Extended set A');
test('Ɖ', true, 'Extended set B');
Expand Down

0 comments on commit 8df0374

Please sign in to comment.