|
1 |
| -/*! Raven.js 1.1.7 (1a6c054) | github.com/getsentry/raven-js */ |
| 1 | +/*! Raven.js 1.1.8 (b2a8e8c) | github.com/getsentry/raven-js */ |
2 | 2 |
|
3 | 3 | /*
|
4 | 4 | * Includes TraceKit
|
5 | 5 | * https://github.com/getsentry/TraceKit
|
6 | 6 | *
|
7 |
| - * Copyright 2013 Matt Robenolt and other contributors |
| 7 | + * Copyright 2014 Matt Robenolt and other contributors |
8 | 8 | * Released under the BSD license
|
9 | 9 | * https://github.com/getsentry/raven-js/blob/master/LICENSE
|
10 | 10 | *
|
@@ -1147,7 +1147,7 @@ TK.remoteFetching = false;
|
1147 | 1147 | * @this {Raven}
|
1148 | 1148 | */
|
1149 | 1149 | var Raven = {
|
1150 |
| - VERSION: '1.1.7', |
| 1150 | + VERSION: '1.1.8', |
1151 | 1151 |
|
1152 | 1152 | // Expose TraceKit to the Raven namespace
|
1153 | 1153 | TraceKit: TK,
|
@@ -1757,14 +1757,21 @@ function isSetup() {
|
1757 | 1757 | function joinRegExp(patterns) {
|
1758 | 1758 | // Combine an array of regular expressions and strings into one large regexp
|
1759 | 1759 | // Be mad.
|
1760 |
| - var sources = [], i = patterns.length; |
1761 |
| - while (i--) { |
1762 |
| - sources[i] = isString(patterns[i]) ? |
| 1760 | + var sources = [], |
| 1761 | + i = 0, len = patterns.length, |
| 1762 | + pattern; |
| 1763 | + |
| 1764 | + for (; i < len; i++) { |
| 1765 | + pattern = patterns[i]; |
| 1766 | + if (isString(pattern)) { |
1763 | 1767 | // If it's a string, we need to escape it
|
1764 | 1768 | // Taken from: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
|
1765 |
| - patterns[i].replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1") : |
| 1769 | + sources.push(pattern.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1")); |
| 1770 | + } else if (pattern && pattern.source) { |
1766 | 1771 | // If it's a regexp already, we want to extract the source
|
1767 |
| - patterns[i].source; |
| 1772 | + sources.push(pattern.source); |
| 1773 | + } |
| 1774 | + // Intentionally skip other cases |
1768 | 1775 | }
|
1769 | 1776 | return new RegExp(sources.join('|'), 'i');
|
1770 | 1777 | }
|
|
0 commit comments