FHEM Forum

FHEM => English Corner => Thema gestartet von: Nestor am 18 November 2018, 17:24:02

Titel: Patch to fix unescaped braces warning
Beitrag von: Nestor am 18 November 2018, 17:24:02
I've got the following warnings upon startup:
2018.11.16 09:24:59 1: PERL WARNING: Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.32), passed through in regex; marked by <-- HERE in m/^({ <-- HERE .*})$/ at ./FHEM/98_SVG.pm line 1479, <$fh> line 652.
2018.11.16 09:24:59 1: PERL WARNING: Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.32), passed through in regex; marked by <-- HERE in m/^({ <-- HERE .*})$/ at ./FHEM/98_SVG.pm line 1730, <$fh> line 652.
2018.11.16 09:24:59 1: PERL WARNING: Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.32), passed through in regex; marked by <-- HERE in m/^(\s*([\w.-]+)(:\S*)?\s+((\w+)\s+)?({ <-- HERE .*?})\s*)(,\s*(.*))*$/ at fhem.pl line 2809, <$fh> line 892.


Fixed with attached patches.
Hope it's okay to post this in the forum, didn't know where to put this.
Titel: Antw:Patch to fix unescaped braces warning
Beitrag von: rudolfkoenig am 18 November 2018, 18:51:49
ZitatFixed with attached patches.
Thanks a lot, I applied them.

ZitatHope it's okay to post this in the forum, didn't know where to put this.
The politically correct area of the forum is specified in the MAINTAINER.txt (https://fhem.de/MAINTAINER.txt) file, but for me is perfectly fine here.