More appropriate message when URLs not found

This commit is contained in:
Kovid Goyal 2018-04-12 07:27:40 +05:30
parent cc910f6b79
commit 805baad9cd
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -201,7 +201,9 @@ def run(args, source_file=None):
marked = mark(finditer, line, index_map)
lines.append(marked)
if not index_map:
input(_('No URLs found, press Enter to abort.'))
input(_('No {} found, press Enter to abort.').format(
'URLs' if args.regex is None else 'matches'
))
return
return run_loop(args, lines, index_map)