Skip to content

Commit

Permalink
Breaking: Changed UrlPath value to be "/" when "empty" instead of ""
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Hansen committed Mar 26, 2015
1 parent 7636974 commit a4be4a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jquery.dfp.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@
// Get the url and parse it to its component parts using regex from RFC2396 Appendix-B (https://tools.ietf.org/html/rfc2396#appendix-B)
var urlMatches = (url || window.location.toString()).match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/);
var matchedAuthority = urlMatches[4] || '';
var matchedPath = (urlMatches[5] || '').replace(/\/$/, '');
var matchedPath = (urlMatches[5] || '').replace(/(.)\/$/, '$1');
var matchedQuery = urlMatches[7] || '';

// Get the query params for targeting against
Expand Down
2 changes: 1 addition & 1 deletion jquery.dfp.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a4be4a1

Please sign in to comment.