Adding is.base64 and is.hex

I needed these for a project I'm working on.  Hope you find them useful.
Sorry for the typo, good catch.

True, odd length hex strings are valid as hex.  However you would not
normally see odd lengths when encoding bytes of data in hex as each hex
digit is only half a byte.  Thus it seemed appropriate to flag it as an
error.  Ultimately it's your call.

On Sun, Oct 19, 2014 at 9:32 PM, Jordan Harband <notifications@github.com>
wrote:

> In index.js:
>
> > @@ -20,6 +20,9 @@ var NON_HOST_TYPES = {
> >    undefined: 1
> >  };
> >
> > +var base64Regex = /^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)$/;
> > +var hexRegex = /^([A-Fa-f0-9]{2})+$/;
>
> 0 and F and FFF are all valid hex-encoded strings - why the {2}?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/enricomarino/is/pull/12/files#r19065593>.
>



-- 
*Peter Girard*
*Vice President*
617-447-2424 Direct | 617-447-2400 Main
Applied Geographics, Inc.
24 School Street, Suite 500
Boston, MA 02108
www.AppGeo.com

-- 
This e-mail message and any attachments may contain confidential or legally 
privileged information. If you are not an intended recipient or otherwise 
authorized to receive this message, you should not use, copy, distribute, 
disclose or take any action based on the information contained in this 
e-mail or any attachments. If you have received this message and material 
in error, please advise the sender immediately by reply e-mail and delete 
this message. Thank you on behalf of Applied Geographics, Inc. (AppGeo).