Commit 425cceba authored by Aurélio A. Heckert's avatar Aurélio A. Heckert

Support uppercase letters with accent on drug selector of DosageForm

parent 631adbc0
......@@ -16,6 +16,7 @@ const acentER = /[áàãâéèêíìîóòôõúùûũç]/i
const getLetter = (match) => {
const letters = {a:'áàãâ', e:'éèê', i:'íìî', o:'óòôõ', u:'úùûũ', c:'ç'}
for (let l in letters) if (letters[l].indexOf(match)>-1) return l
for (let l in letters) if (letters[l].toUpperCase().indexOf(match)>-1) return l.toUpperCase()
}
const showPacient = (p, removeAcent)=>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment