This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Error while searching appointments #2029
Comments
I'm working on #1999; Once my submitted fix is accepted, I can apply it to the rest of the inputs to escape all special regex characters. |
JDarke
added a commit
to JDarke/hospitalrun-frontend
that referenced
this issue
May 1, 2020
Added escapeStringRegex to AppointmentRepository, and associated test suite in src/__tests__/clients/db/AppointmentRepository.test.ts. This escapes regex chars included in the search field in patient info > appointments area fix HospitalRun#2029
JDarke
added a commit
to JDarke/hospitalrun-frontend
that referenced
this issue
May 1, 2020
Added escapeStringRegexp to AppointmentRepository.ts to escape regex chars in appointment search feild in patient info area. fix HospitalRun#2029
Sorry about the multiple commits. I tried resetting my local repo and then making the changes again, as my master branch was out of sync with the master repo and things were getting untidy. Looks like I still managed to send multiple commits. :| If anyone could give me an idea of how to submit a PR without having my previous 43 commits linked to it, I'd be very grateful! |
matteovivona
pushed a commit
that referenced
this issue
May 2, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
🐛 Bug Report
Special characters in input string causing issue.
To Reproduce
Steps to reproduce the behavior:
Problemtic inputs:
\
or[
*
{<number>}
The list is not exhaustive.
Expected behavior
No error.
A clear and concise description of what you expected to happen.
Your Environment
Similar to: #1999
The text was updated successfully, but these errors were encountered: