Skip to content

Commit

Permalink
Fixes ScriptPath for script paths with query strings
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunol authored and solsen committed Feb 7, 2018
1 parent 2cca325 commit b827beb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/perspective-common/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function detectChrome() {
*
* Returns
* -------
* An instnace of a SCriptPath object. Interesting methods on this object
* An instance of a ScriptPath object. Interesting methods on this object
* include:
* fullPath : The complete path of this script.
* path : The path (no host).
Expand All @@ -87,7 +87,7 @@ export function ScriptPath() {
callerIndex = Number(i);
break;
}
pathParts = stackLines[callerIndex].match(/((http[s]?:\/\/.+\/)([^\/]+\.(js|html))):/);
pathParts = stackLines[callerIndex].match(/((http[s]?:\/\/.+\/)([^\/]+\.(js|html))).*?:/);
}
this.fullPath = function() {
return pathParts[1];
Expand Down

0 comments on commit b827beb

Please sign in to comment.