Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Erinle — Web UI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Colivre
Erinle — Web UI
Commits
425cceba
Commit
425cceba
authored
Nov 06, 2018
by
Aurélio A. Heckert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support uppercase letters with accent on drug selector of DosageForm
parent
631adbc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
DosageForm.js
src/routes/Dosages/components/DosageForm.js
+1
-0
No files found.
src/routes/Dosages/components/DosageForm.js
View file @
425cceba
...
...
@@ -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
)
=>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment