Permalink
Browse files

if a scuttlebutt is passed to match - just return it

  • Loading branch information...
dominictarr committed Jan 11, 2013
1 parent 7ba5145 commit 13806e63c6ad0444293fbe5afd73f2c438583d3e
Showing with 1 addition and 0 deletions.
  1. +1 −0 index.js
View
@@ -13,6 +13,7 @@ var exports = module.exports = function (schema) {
}
function match (key) {
+ if('object' === typeof key) return key
for (var i in rules) {
var r = rules[i]
var m = key.match(r.rx)

0 comments on commit 13806e6

Please sign in to comment.