X-Git-Url: https://git.shemshak.org/gitweb.cgi/~bandali/bndl.org/blobdiff_plain/22e69f338295b2ab3ab7386ec7933c54ac104eb4..d29d6cb99e1596a4ebe45f70b157e9ea0b7c3461:/txt2pre diff --git a/txt2pre b/txt2pre index 5bf8811..49bd164 100644 --- a/txt2pre +++ b/txt2pre @@ -195,7 +195,7 @@ my $txt = do { local $/; }; my $title = html_esc($txt =~ /\A([^\n]+)/); $title =~ s/^\s+|\s+$//g; -$title .= " — $author" if $title !~ /$author/; +$title .= " — $author" if $title !~ /$author/; my ($upd, $pub, $url) = $txt =~ /(.*)\r?\n(.*)\r?\n(.*)\r?\n?\z/; ($upd) = $upd =~ /(?:updated|ویرایش): (.*)/ if $upd;