stretchr / arg.js

Lightweight URL argument and parameter parser
Other
1.06k stars 47 forks source link

query allows an optional argument specifying the url to parse #7

Closed magahet closed 10 years ago

magahet commented 11 years ago

I did see Arg.parse, but I also wanted to take advantage of query calling _cleanParamStr for me. Otherwise I'd have to call the former explicitly. Regarding the other issue of handling "=" in param values, my use case required that special handling and I could see others running into the same issue.

matryer commented 11 years ago

Would it help if Parse cleaned the string?

Sent from my iPhone

On 1 Oct 2013, at 17:35, Magahet Mendiola notifications@github.com wrote:

I did see Arg.parse, but I also wanted to take advantage of query calling _cleanParamStr for me. Otherwise I'd have to call the former explicitly. Regarding the other issue of handling "=" in param values, my use case required that special handling and I could see others running into the same issue.

— Reply to this email directly or view it on GitHub.

magahet commented 11 years ago

Yes. In hindsight, I should have started from there in the first place.