statianzo / que-web

A web interface for the Que queue
BSD 3-Clause "New" or "Revised" License
88 stars 50 forks source link

Search sanitisation incorrectly removes `Li` from `LinkQueJob` #47

Closed owst closed 5 years ago

owst commented 5 years ago

With Using LinkQueJob as the search param - the search text box is filled with nkQueJob

This looks like a typo in the regex I changed here - the /.../i is written as /...i/

owst commented 5 years ago

Specifically, the regex is used as gsub(/[^0-9a-z:]i/, '') which matches Li in LinkQueJob and deletes the Li giving nkQueJob