Skip to content

Commit fdac9de

Browse files
committed
Use the isUndefined helper rather than typeof in joinRegExp
1 parent e75467d commit fdac9de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/raven.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ function joinRegExp(patterns) {
644644
// Be mad.
645645
var sources = [], i = patterns.length;
646646
while (i--) {
647-
if (typeof patterns[i] != "undefined" && patterns[i]) {
647+
if (!isUndefined(patterns[i]) && patterns[i]) {
648648
sources[i] = isString(patterns[i]) ?
649649
// If it's a string, we need to escape it
650650
// Taken from: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions

0 commit comments

Comments
 (0)