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.
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.