aaronpk / XRay

X-Ray returns structured data from any URL
https://xray.p3k.app
MIT License
90 stars 15 forks source link

Allow local domains in Mf2::isURL #87

Closed swentel closed 4 years ago

swentel commented 5 years ago

My use case is for the Drupal testbot which runs test with a domain which has no dots.

I've added an option called 'allow_local_domain' which you can pass in $opts. This way, the default behaviour can still be preserved, so we don't necessarily break other setups.

swentel commented 4 years ago

going to create a different pull request