Skip to content

Commit

Permalink
Fix real, really
Browse files Browse the repository at this point in the history
Closes GH-31.
  • Loading branch information
wooorm committed Aug 12, 2019
1 parent eeab03e commit a30ec92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ var EXPRESSION_DOUBLE_SYLLABIC_THREE = new RegExp(
'io',
'ii',
'uen',
'real',
'[aeilotu]real',
'real[aeilotu]',
'iell',
'eo[^aeiou]',
'[aeiou]y[aeiou]'
Expand Down
4 changes: 4 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ test('api', function(t) {
t.equal(syllable('Snuffleupagus'), 5, 'GH-25 (snuffleupagus)')
t.equal(syllable('queue'), 1, 'GH-26 (queue)')

t.equal(syllable('real'), 1, 'GH-31 (real/deal/really)')
t.equal(syllable('deal'), 1, 'GH-31 (real/deal/really)')
t.equal(syllable('really'), 2, 'GH-31 (real/deal/really)')

t.end()
})

Expand Down

0 comments on commit a30ec92

Please sign in to comment.