1
2
Fork 1

better param parsing #36

Merge aplicado
coolaj86 aplicou merge dos 1 commits de params-parsing em master 2019-05-29 21:38:17 +00:00
Proprietário

Removing any and all of the following leading characters before parsing the params: #/?.

  • #access_token=x&foo=bar => access_token=x&foo=bar
  • #/?access_token=x&foo=bar => access_token=x&foo=bar
  • #/access_token=x&foo=bar => access_token=x&foo=bar
  • #?access_token=x&foo=bar => access_token=x&foo=bar
Removing any and all of the following leading characters before parsing the params: `#/?`. * `#access_token=x&foo=bar` => `access_token=x&foo=bar` * `#/?access_token=x&foo=bar` => `access_token=x&foo=bar` * `#/access_token=x&foo=bar` => `access_token=x&foo=bar` * `#?access_token=x&foo=bar` => `access_token=x&foo=bar`
Ghost aprovou estas alterações 2019-05-29 01:49:48 +00:00
@ -4,3 +4,3 @@
document.body.hidden = false;
var hash = window.location.hash.substr(1);
var hash = window.location.hash.replace(/^[\/#?]+/, '');
First-time contributor

Would #? to be safe, but I think inside a square bracket it's fine.

Would \#\? to be safe, but I think inside a square bracket it's fine.
Autor
Proprietário

true on both accounts

true on both accounts
coolaj86 fechou este pull request 2019-05-29 21:38:17 +00:00
Autor
Proprietário

Thanks @mikegwhit

Thanks @mikegwhit
Acesse para participar desta conversação.
Sem revisor
Sem etiqueta
feature
Sem marco
Sem responsável
2 participante(s)
Notificações
Data limite
A data limite é inválida ou está fora do intervalo. Por favor, use o formato 'dd/mm/aaaa'.

Data limite não informada.

Dependências

Nenhuma dependência definida.

Referência: coolaj86/telebit.js#36
Nenhuma descrição fornecida.