diff --git a/lambdatex.cabal b/lambdatex.cabal
--- a/lambdatex.cabal
+++ b/lambdatex.cabal
@@ -1,5 +1,5 @@
 name:                lambdatex
-version:             0.1.0.0
+version:             0.1.0.1
 synopsis:            Type-Safe LaTeX EDSL
 description:         
   ΛTeX, pronounced 'LambdaTeX' is a Haskell EDSL that adds type-safety to LaTeX.
diff --git a/src/Text/LaTeX/LambdaTeX/Selection/Internal.hs b/src/Text/LaTeX/LambdaTeX/Selection/Internal.hs
--- a/src/Text/LaTeX/LambdaTeX/Selection/Internal.hs
+++ b/src/Text/LaTeX/LambdaTeX/Selection/Internal.hs
@@ -79,4 +79,4 @@
 
 -- | Tests whether a given part matches a given selector's part specification
 matches :: [Text] -> [Text] -> Bool
-matches = flip isPrefixOf
+matches a b = (a `isPrefixOf` b) || (b `isPrefixOf` a)
