GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Added support for additional URI schemes per RFC 3986. Specifically this patch adds support for three special characters (".", "+", and "-") in the URI scheme that were previously being rejected as invalid.
I also included some special handling for AIR-specific URI schemes (app:/ and app-storage:/), since they're actually hierarchical despite the single slash.
I closed the previous pull request and replaced it with this one, since the branch now has a couple of different fixes for the URI class.
URI method isOfFileType() was returning the wrong result after correc…
…tly determining a match by file extension. Added tests to verify correct behavior.
Updated URI class to accept permitted special characters (. + - ) in …
Improved scheme validation regex, and added a more comprehensive set …
…of test cases to verify several valid URI schemes that would have previously been rejected.
Added one more unit test case for verifyScheme() that directly valida…
…tes the change to the scheme regex.
Changes per Issue #160 of original fork.