Skip to content

Commit ad8cc6e

Browse files
committed
Fixes bug in example script, updates PSL.
1 parent 915a956 commit ad8cc6e

File tree

2 files changed

+193
-1
lines changed

2 files changed

+193
-1
lines changed

bin/parse

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ try {
2323
$manager = new \Pdp\PublicSuffixListManager();
2424
$parser = new Pdp\Parser($manager->getList());
2525
$url = $parser->parseUrl($domain);
26-
$suffixValid = ($parser->isSuffixValid($domain)) ? 'IS' : 'IS NOT';
26+
$suffixValid = ($parser->isSuffixValid((string) $url->host)) ? 'IS' : 'IS NOT';
2727

2828
print_r($url->toArray());
2929
echo sprintf('Host: %s', $url) . PHP_EOL;

0 commit comments

Comments
 (0)