Instead of having to pass lucky=1 as a GET parameter you can now enter a search term beginning with "!" or "\" to have MetaCPAN return the first result to you. E.g. searching for "!Plack" or "\Plack" will redirect you to /module/Plack. This is an alternative to pressing Shift+Enter on the site to go to the first result, but the real value is being able to use e.g. DuckDuckGo to search for "!cpan !Plack" to go to the first MetaCPAN result. See-Also: CPAN-API#269
I broke the Shift+Enter IFL feature while solving a bug in 140605c. Now we can: * Shift+Enter to do IFL * Click the IFL button *Without* implicitly adding a "1" to search queries and thus throwing them off. I've only tested this in Chrome but it's using some pretty basic W3C core API to append the element, so it probably shouldn't break anywhere.
…L queries This code was conflating the boolean test for checking if we had the "q" or "lucky" paramaters with what we ended up searching for, so e.g. searching for "XML" under IFL would implicitly search for "XML 1", which would return "Example-1", instead of "XML". Change the code to only use "lucky" as a boolean parameter, not as a part of the search query.
… a scheme) Default to http:// if the original URL has no scheme
- comment highlighting could bleed into the next line, as seen on https://metacpan.org/source/ATRIPPS/File-Tail-Multi-0.1/Multi.pm - "#!" was treated as a shebang even in the middle of a line/file - "*" was missing from the list of variable sigils - __END__ was matched case-insensitively and __DATA__ was missing - general cleanup of the regexes