better param parsing #36

已合并
coolaj86 2019-05-29 21:38:17 +00:00 将 1 次代码提交从 params-parsing 合并至 master
管理员

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`
Ghost2019-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(/^[\/#?]+/, '');
首次贡献者

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.
作者
管理员

true on both accounts

true on both accounts
coolaj86 "于 2019-05-29 21:38:17 +00:00 关闭此合并请求 "
作者
管理员

Thanks @mikegwhit

Thanks @mikegwhit
登录 并参与到对话中。
无审核者
未选择标签
feature
未选择里程碑
未指派成员
2 名参与者
通知
到期时间
到期日期无效或超出范围。请使用 'yyyy-mm-dd' 格式。

未设置到期时间。

依赖工单

没有设置依赖项。

参考:coolaj86/telebit.js#36
没有提供说明。