softpano / pythonizer

Translator (or more correctly transcriber) from Perl to Python
http://www.softpanorama.org/Scripting/Pythonorama/Python_for_perl_programmers/Pythonizer/index.shtml
Other
39 stars 17 forks source link

Regex with DEFAULT_VAR and capturing groups needs to always set the DEFAULT_MATCH #124

Open snoopyjc opened 2 years ago

snoopyjc commented 2 years ago

Regex with DEFAULT_VAR and capturing groups needs to always set the DEFAULT_MATCH. There are cases in the code where it's not set, but if the user then refers to $1 etc, that gives an error.

snoopyjc commented 2 years ago

Fixed in my v0.956 https://github.com/snoopyjc/pythonizer/