diff --git a/lib/types/object.js b/lib/types/object.js
index 429756f39068c7739e663d4ef4684cd44efb8e50..cae6adb844ce975c3508c012484c46718d08ec8d 100644
Binary files a/lib/types/object.js and b/lib/types/object.js differ
diff --git a/spec/core/types/objects.json b/spec/core/types/objects.json
index a636a24419219725fefc181152cacabe3cb41106..302be1885da31c4c3f63fa2aaaff9415b0c15890 100644
--- a/spec/core/types/objects.json
+++ b/spec/core/types/objects.json
@@ -14,6 +14,17 @@
           "required": ["one", "three"]
         },
         "valid": true
+      },
+      {
+        "description": "should handle patternProperties",
+        "schema": {
+          "type": "object",
+          "patternProperties": {
+            "a\\w{4,12}": { "type": "string" },
+            "xy-[a-f\\d]{4}-n[pqrz]": { "type": "string" }
+          }
+        },
+        "valid": true
       }
     ]
   }