I’m not an expert in regex and can't figure what I am supposed to change here.
I get these two errors
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/^(.*?)(\\)?\${ <-- HERE ([^{}]+)}(.*)$/ at /usr/share/perl5/Debconf/Question.pm line 72.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([^}]+)}/ at /usr/share/perl5/Debconf/Config.pm line 30.
When I jump to the line 72 this is what I see
while ($rest =~ m/^(.*?)(\\)?\${([^{}]+)}(.*)$/sg) {
It's a deprecation warning indicating the code will stop working in the future.
If you want to match a { literally, you should escape it.
In other words, you can fix the issue (silencing the warning) by replacing the first { with \{.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With