Skip to content

Commit

Permalink
more robust vowels
Browse files Browse the repository at this point in the history
  • Loading branch information
lancejpollard committed May 16, 2023
1 parent e14e6f7 commit 281bb31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion form.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ BASE_VOWEL_GLYPHS.forEach(g => {
// these two are treated specially, not getting the variant mark
if (i.match(/([ou])#/)) {
const x = RegExp.$1
const o = `${x === 'o' ? 1 : 2}${D[l]}${D[a]}${D[t]}${D[n]}`
const o = l === '$'
? `${x === 'o' ? 1 : 2}${D[a]}${D[t]}${D[l]}${D[n]}${D[s]}`
: `${x === 'o' ? 1 : 2}${D[l]}${D[a]}${D[t]}${D[n]}${D[s]}`
VOWELS.push({ i, o })
} else {
const o = l === '$'
Expand Down

0 comments on commit 281bb31

Please sign in to comment.