Patch to fix unescaped braces warning

Begonnen von Nestor, 18 November 2018, 17:24:02

Vorheriges Thema - Nächstes Thema

Nestor

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.

rudolfkoenig

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 file, but for me is perfectly fine here.