Closed DIRECTcut closed 3 years ago
Describe the bug Currently the regular expression in isQueryValid allows such strings:
oHg5SJYRHA0)
Expected behavior The function should allow this: oHg5SJYRHA0
oHg5SJYRHA0
butnot this: oHg5SJYRHA0)
Additional Context The regexp should be ^.*[a-zA-Z0-9_-]{11}$ to account for where a string begins and ends.
regexp
^.*[a-zA-Z0-9_-]{11}$
Fixed in commit
Describe the bug Currently the regular expression in isQueryValid allows such strings:
oHg5SJYRHA0)
Expected behavior The function should allow this:
oHg5SJYRHA0
butnot this:
oHg5SJYRHA0)
Additional Context The
regexp
should be^.*[a-zA-Z0-9_-]{11}$
to account for where a string begins and ends.