Reactify-Django icon indicating copy to clipboard operation
Reactify-Django copied to clipboard

Regexp takes only last character of first group

Open krisavi opened this issue 7 years ago • 0 comments

According to regex it seems to take only last character of the first group instead of full part.

https://github.com/codingforentrepreneurs/Reactify-Django/blob/14339fa19aa12c992f4c40d58a1d4ade709b983f/src/reactify-ui/package.json#L25

to fix it the first group should be like: ([^\\.]+)

Update: tested it with incorrect format and it seemed to even work correctly, even though according to regex it should only take last character, i.e. logo.f0e512c7.svg to o.svg

regexr.com/42sol

krisavi avatar Nov 11 '18 12:11 krisavi