dnsmadeeasy: Convert string literal to compiled regex

for readability.
This commit is contained in:
Richard Hansen 2024-07-23 00:38:55 -04:00
parent ca28694dd7
commit 971fe438a3

View file

@ -6603,7 +6603,7 @@ sub nic_dnsmadeeasy_update {
next if !header_ok($h, $reply);
my @reply = split /\n/, $reply;
my $returned = pop(@reply);
if ($returned =~ 'success') {
if ($returned =~ qr/success/) {
$config{$h}{'ip'} = $ip;
$config{$h}{'mtime'} = $now;
$config{$h}{'status'} = 'good';