From 7765dd1cffe4fde68d110d18696376cc1d79d833 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Wed, 20 Oct 2021 11:02:45 +0300 Subject: sentences: support i.e. e.g. --- .local/bin/sentences | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.local/bin/sentences') diff --git a/.local/bin/sentences b/.local/bin/sentences index cc21d3b..1b46a49 100755 --- a/.local/bin/sentences +++ b/.local/bin/sentences @@ -2,8 +2,8 @@ use strict; -my $pont = qr{[.!?]+}; ## punctuation -my $abrev = qr{\b(?:Pr|Dr|Mr|[A-Z])\.}; ## abbreviations +my $pont = qr{[.!?]+}; ## punctuation +my $abrev = qr{\b(?:Pr|Dr|Mr|[A-Z]|i\.e|e\.g)\.}; ## abbreviations my $header = qr{(=+ .*? =+)}; $/ = ""; -- cgit v1.2.3-70-g09d2