codingforentrepreneurs / Reactify-Django

Integrate React & Django
MIT License
235 stars 104 forks source link

Regexp takes only last character of first group #3

Open krisavi opened 6 years ago

krisavi commented 6 years ago

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