diff --git a/src/matches.js b/src/matches.js
index <HASH>..<HASH> 100644
--- a/src/matches.js
+++ b/src/matches.js
@@ -21,7 +21,7 @@ function type(object, fragment) {
 }
 
 function id(object, fragment) {
-    return (object.props.id == fragment);
+    return (object.props.id == fragment.slice(1));
 }
 
 export default {
Fixed a bug where selecting by ID wouldn't work.
- This was because the hash wasn't slice when comparing the fragment.