adunkman / dc311rn.com

Quickly check the status of a DC 311 service request
https://www.dc311rn.com
MIT License
6 stars 0 forks source link

Fix routing by removing `g` regexp flag. #13

Closed adunkman closed 6 years ago

adunkman commented 6 years ago

Introduced in #5.

Adding g to the general purpose RegExp for service requests causes the route handler to have state — so every other route doesn’t match the regular expression anymore.

This isn’t ideal — instead, let’s add the g flag only in the tweet object where it’s required.