Closed jwheare closed 6 years ago
Hi, thanks for the PR. Do I understand correctly that the only difference between those 2 is the a
after <
and the rest is completely identical? If so it definitely can be a single regex: <a?(:[^:]+:)(\\d+)>
, which makes a
optional should work.
Yup, but you also need to switch out png for gif depending on whether a
is present.
Right, I missed that. This should be fine then.
This resolves #139
There's probably a cleverer way to do this with a single regex but this works.