pfalcon / re1.5

re1, the unbloated regexp engine by Russ Cox, elaborated to be useful for real-world applications
BSD 3-Clause "New" or "Revised" License
41 stars 4 forks source link

compilecode: Fix handling of '-' inside groups #30

Closed deshipu closed 6 years ago

deshipu commented 7 years ago

Fix https://github.com/micropython/micropython/issues/3178

When '-' appears at the end of a class, treat it as literal '-'.

Copied from https://github.com/micropython/micropython/pull/3239

pfalcon commented 6 years ago

Fixed with minimum extra code in https://github.com/pfalcon/re1.5/commit/bbfe74ae353615dbc3d7f6d54b4d315530fe06fb and testcases in https://github.com/pfalcon/re1.5/commit/53ec8fbfbf81819340433ce26b6f2697376f5c64

deshipu commented 6 years ago

I'm confused. First you say that this change is not welcome in this project, and then you make it yourself.