Skip to content

Commit

Permalink
fix: there's always a prefixed "." on these, so this is safer
Browse files Browse the repository at this point in the history
  • Loading branch information
Sn0wCrack authored Aug 22, 2022
1 parent c995c93 commit 752243e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2911,7 +2911,7 @@ function synergywholesaledomains_GetTldPricing(array $params)
$transfer_price = $extension->transfer;
$register_price = $extension->register_1_year;

if (preg_match('/\.?au$/', $tld)) {
if (preg_match('/\.au$/', $tld)) {
$transfer_price = 0.00;
}

Expand All @@ -2929,7 +2929,7 @@ function synergywholesaledomains_GetTldPricing(array $params)
->setRedemptionFeePrice($extension->redemption)
->setRedemptionFeeDays($extension->cannotRenewWithin)
->setCurrency('AUD')
->setEppRequired(!preg_match('/\.?uk$/', $tld))
->setEppRequired(!preg_match('/\.uk$/', $tld))
->setGraceFeeDays($extension->canRenewWithin)
->setGraceFeePrice('0.00')
;
Expand Down

0 comments on commit 752243e

Please sign in to comment.