Skip to content

Commit

Permalink
Remove ending dot char from target value of dig response (#7)
Browse files Browse the repository at this point in the history
Like it is done host value
  • Loading branch information
vaidas-lungis authored Feb 22, 2017
1 parent cf04db4 commit 98945d2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Hostinger/RecordType/Cname.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function transform(array $lines)
'ttl' => $recordProp[1],
'class' => $recordProp[2],
'type' => $recordProp[3],
'target' => $recordProp[4],
'target' => trim($recordProp[4], '\.'),
];
}
return $output;
Expand Down
2 changes: 1 addition & 1 deletion src/Hostinger/RecordType/Mx.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function transform(array $lines)
'class' => $recordProp[2],
'type' => $recordProp[3],
'pri' => $recordProp[4],
'target' => $recordProp[5],
'target' => trim($recordProp[5], '\.'),
];
}
return $output;
Expand Down
2 changes: 1 addition & 1 deletion src/Hostinger/RecordType/Ns.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function transform(array $lines)
'ttl' => $recordProp[1],
'class' => $recordProp[2],
'type' => $recordProp[3],
'target' => $recordProp[4],
'target' => trim($recordProp[4], '\.'),
];
}
return $output;
Expand Down

0 comments on commit 98945d2

Please sign in to comment.