Skip to content

Commit 84a00c1

Browse files
committed
ensure options is a plain object
1 parent 3b7ab15 commit 84a00c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ utils.instantiate = function(ast, options) {
8181
*/
8282

8383
utils.createKey = function(pattern, options) {
84-
if (typeof options === 'undefined') {
84+
if (utils.typeOf(options) !== 'object') {
8585
return pattern;
8686
}
8787
var val = pattern;

0 commit comments

Comments
 (0)