YaleSTC / reservations

Manage equipment loans & reservations. Who can borrow what, for how long?
yalestc.github.io/reservations
MIT License
139 stars 58 forks source link

Fix phone regex parsing #1647

Closed AlanLiu96 closed 7 years ago

AlanLiu96 commented 7 years ago
Resolves #1633
- fixed the regex string to look for only numbers and ()
AlanLiu96 commented 7 years ago

tbh, I'm a bit confused as to why rubocop recognizes the phone number regex as regex and requires it to be wrapped by %r{}, but other regex in the file (like for emails...) wrapped by / / (like this was initially), doesn't trigger rubocop.