Skip to content

Commit af5bd54

Browse files
committed
1.1.8
1 parent b2a8e8c commit af5bd54

File tree

5 files changed

+20
-13
lines changed

5 files changed

+20
-13
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "raven-js",
3-
"version": "1.1.7",
3+
"version": "1.1.8",
44
"dependencies": {},
55
"main": "dist/raven.js"
66
}

dist/raven.js

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
/*! Raven.js 1.1.7 (1a6c054) | github.com/getsentry/raven-js */
1+
/*! Raven.js 1.1.8 (b2a8e8c) | github.com/getsentry/raven-js */
22

33
/*
44
* Includes TraceKit
55
* https://github.com/getsentry/TraceKit
66
*
7-
* Copyright 2013 Matt Robenolt and other contributors
7+
* Copyright 2014 Matt Robenolt and other contributors
88
* Released under the BSD license
99
* https://github.com/getsentry/raven-js/blob/master/LICENSE
1010
*
@@ -1147,7 +1147,7 @@ TK.remoteFetching = false;
11471147
* @this {Raven}
11481148
*/
11491149
var Raven = {
1150-
VERSION: '1.1.7',
1150+
VERSION: '1.1.8',
11511151

11521152
// Expose TraceKit to the Raven namespace
11531153
TraceKit: TK,
@@ -1757,14 +1757,21 @@ function isSetup() {
17571757
function joinRegExp(patterns) {
17581758
// Combine an array of regular expressions and strings into one large regexp
17591759
// 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)) {
17631767
// If it's a string, we need to escape it
17641768
// 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) {
17661771
// 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
17681775
}
17691776
return new RegExp(sources.join('|'), 'i');
17701777
}

dist/raven.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)