Skip to content

Commit 9531443

Browse files
committed
relax the regex a little
1 parent 4feda9a commit 9531443

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/auth.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ internals.Auth.prototype._setupRoute = function (options, path) {
131131
}
132132

133133
for (var i = 0, il = options.scope.length; i < il; ++i) {
134-
if (/{([^{}]+)}/g.test(options.scope[i])) {
134+
if (/{([^}]+)}/g.test(options.scope[i])) {
135135
options.hasScopeParameters = true;
136136
break;
137137
}
@@ -294,7 +294,7 @@ internals.Auth.prototype._authenticate = function (request, next) {
294294
};
295295

296296
for (var i = 0, il = config.scope.length; i < il; ++i) {
297-
config.scope[i] = config.scope[i].replace(/{([^{}]+)}/g, expandScope);
297+
config.scope[i] = config.scope[i].replace(/{([^}]+)}/g, expandScope);
298298
}
299299
}
300300

0 commit comments

Comments
 (0)