jsonwebtoken/jsonwebtoken.github.io — pull request #27 by nakedible-p (2014-11-22 20:02:57+00:00)
Title: Fix multiple occurences of `-` or `_` in tokens

String replacements replaced only the first occurence of `-` or `_` in tokens for base64 decoding, which meant that there was a base64 decode error if more than one of either was present in the base64url format. Use regexps in replacement instead to get a global match.