nntoan / scriptify

Automatically exported from code.google.com/p/scriptify
MIT License
0 stars 0 forks source link

While creating the add-on, it malforms (changes) include URLs in scriptify.json #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a GM script with one or more include URLs of the form 
 http://abc.*/def.jsp* 

2. Use scriptify to convert to an add-on

3. See that in the generated scriptify.json, the first '*' has been changed to 
"tld" for some reason, totally breaking the script. It will keep on people 
guessing what happened, and they'll give 1 star. 

What is the expected output? What do you see instead?
Expected output is that the first '*' remains as such. Why touch the URLs? What 
we see is the star has been changed to this string: 'tld'. 

What version of the product are you using? On what operating system?
Scriptify Add-on for Firefox version 0.2.5 

Please provide any additional information below.
In Firefox 26/27. Same problem. 

Original issue reported on code.google.com by piyushs...@gmail.com on 13 Feb 2014 at 11:14

GoogleCodeExporter commented 9 years ago
This is intentional. See the docs which explain pattern matching. URLs are not 
treated as globs, and in domains, asterisks are only supported at the beginning 
of the hostname, to indicate subdomains. '.tld' is treated specially, ala 
Greasemonkey, to indicate any known top-level domain.

If you actually want a filter similar to that globbed URL, you'll need to use a 
regular expression.

Original comment by maglion...@gmail.com on 14 Feb 2014 at 2:33