#!/usr/bin/perl -w
-# Copyright (C) 2016 all contributors <meta@public-inbox.org>
+# Copyright (C) 2016-2020 all contributors <meta@public-inbox.org>
# License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
# Useful for mapping article IDs from existing NNTP servers to MIDs
use strict;
die "Invalid group\n" if !(defined $num && defined $first && defined $last);
my $arg_first = shift;
if (defined $arg_first) {
- $arg_first =~ /\A\d+\z/ or die $usage;
+ $arg_first =~ /\A[0-9]+\z/ or die $usage;
$first = $arg_first;
} elsif ($mm) {
my $last_article = $mm->meta_accessor('last_article');