The patch is pretty straightforward.
I apologize for not adding tests; perhaps I can recommend adding a "how to contribute" bit in the docs that will mention exactly how to run them.
In this case I'd add a static property URI.default_fragment_prefix = '!' and import that on URI instantiation.
URI.default_fragment_prefix = '!'
Pardon my weak JS, but won't that set the default for all future URI() instances? I thought it more elegant to make it configurable on a per URI basis, no?
Well, yes. All I said was move the defaultPrefix variable onto URI so it is actually configurable. That allows you to configure once and use everywhere, while still being able to use some different prefix for specific URI instances...
Regarding the testing, just open the /test directory in your browser. the testing framework is QUnit. fiddle with it!
make it possible to get/set fragment prefix (#!, #?, #, etc)
Right. I believe I made it as you suggested and added a couple of tests. I hope you'll choose to merge this; and thanks for URI.js!
I added some comments to your latest commit. :)
Have you given up on this?
Not at all, but then life happened, you know.
I'll try to get to it this week, there's really not that much to do.
adding `.fragmentPrefix()` to configure prefix of fragmentURI and fra…
…gmentQuery extensions - Issue #55
This has been fixed and released in v1.8.2.
(Thank you for your effort!)
Thanks for wrapping this up and sorry I dropped the ball on ya... :)
oh please… you were the reason this came up and I actually looked for good solution. both fragment abuse extensions were initially only meant to inspire custom implementations, not be used literally. I think that has changed now, thanks to you! :)