From 2554f99ad4677b200747eb7824213798974f8552 Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Sat, 6 Jan 2018 21:02:51 +0100 Subject: Fix regular expression in SentenceExtractor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When starting ninka, the following message was printed:   Unescaped left brace in regex is deprecated here   (and will be fatal in Perl 5.30), passed through in regex;   marked by <-- HERE in m/^\s*[0-9]{ <-- HERE 1-2}+\s*[\-\)]/   at Ninka/SentenceExtractor.pm line 117. --- lib/Ninka/SentenceExtractor.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Ninka/SentenceExtractor.pm b/lib/Ninka/SentenceExtractor.pm index 6aeee4e..49cba8e 100644 --- a/lib/Ninka/SentenceExtractor.pm +++ b/lib/Ninka/SentenceExtractor.pm @@ -114,7 +114,7 @@ sub clean_sentence { # check for trailing bullets of different types s/^o //; - s/^\s*[0-9]{1-2}+\s*[\-\)]//; + s/^\s*[0-9]{1,2}+\s*[\-\)]//; s/^[ \t]+//; s/[ \t]+$//; -- cgit v1.2.1