Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

support for https:// links too

  • Loading branch information...
commit 2cd3540aafd2372523c64695841d9a4579e9c720 1 parent 9fc6ea4
@rogerhu authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 tracekit.js
View
8 tracekit.js
@@ -545,8 +545,8 @@ TraceKit.computeStackTrace = (function () {
return null;
}
- var chrome = /^\s*at (\S+) \(((?:file|http):.*?):(\d+)(?::(\d+))?\)\s*$/i,
- gecko = /^\s*(\S*)(?:\((.*?)\))?@((?:file|http).*?):(\d+)(?::(\d+))?\s*$/i,
+ var chrome = /^\s*at (\S+) \(((?:file|http|https):.*?):(\d+)(?::(\d+))?\)\s*$/i,
+ gecko = /^\s*(\S*)(?:\((.*?)\))?@((?:file|http|https).*?):(\d+)(?::(\d+))?\s*$/i,
lines = ex.stack.split("\n"),
stack = [],
parts,
@@ -671,8 +671,8 @@ TraceKit.computeStackTrace = (function () {
return null;
}
- var lineRE1 = /^\s*Line (\d+) of linked script ((?:file|http)\S+)(?:: in function (\S+))?\s*$/i,
- lineRE2 = /^\s*Line (\d+) of inline#(\d+) script in ((?:file|http)\S+)(?:: in function (\S+))?\s*$/i,
+ var lineRE1 = /^\s*Line (\d+) of linked script ((?:file|http|https)\S+)(?:: in function (\S+))?\s*$/i,
+ lineRE2 = /^\s*Line (\d+) of inline#(\d+) script in ((?:file|http|https)\S+)(?:: in function (\S+))?\s*$/i,
lineRE3 = /^\s*Line (\d+) of function script\s*$/i,
stack = [],
scripts = document.getElementsByTagName('script'),
Please sign in to comment.
Something went wrong with that request. Please try again.