diff options
author | Roland Illig <roland.illig@gmx.de> | 2018-01-06 21:02:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-06 21:02:51 +0100 |
commit | 2554f99ad4677b200747eb7824213798974f8552 (patch) | |
tree | 7f214a44c6982ce17ea9e7a826c9a0b7f9b193e5 | |
parent | 81f185261c8863c5b84344ee31192870be939faf (diff) | |
download | ninka-2554f99ad4677b200747eb7824213798974f8552.tar.gz |
Fix regular expression in SentenceExtractor
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.
-rw-r--r-- | lib/Ninka/SentenceExtractor.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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]+$//; |