Subject: | license url with fragment part |
Date: | Sat, 30 May 2009 01:13:33 +1000 |
To: | bug-Test-YAML-Meta [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
In my META.yml files I've been using
resources:
license: http://www.gnu.org/licenses/#GPL
But Test::YAML::Meta objects
ERR: 'http://www.gnu.org/licenses/#GPL' for 'license' is not a valid URL. (resources -> license) [Validation: 1.3]
where I hoped it would pass. I suspect the "#GPL" fragment/anchor part
is not matched.
(Incidentally, I suppose Regexp::Common has various 'orrible patterns
for general urls, though its $RE{URI} doesn't match a fragment part
either, though there's a bit in Regexp::Common::URI::RFC2396 for it.)