<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -161,7 +161,9 @@ route(Name, Doc, Pat) -&gt;
 route(Name, Doc, Pat, G) -&gt;
     Route = #route{pattern=Pat, name=Name, subs=G, doc=Doc},
     C0 = lists:foldl(fun compile_re/2, #croute{route=Route}, Pat),
-    Exp = lists:reverse(lists:flatten(C0#croute.regex)),
+    Exp0 = lists:reverse(lists:flatten(C0#croute.regex)),
+    % Add anchor markers (otherwise we get false matches)
+    Exp = [[&quot;^&quot;|Exp0]|&quot;$&quot;],
     {ok, Exp1} = re:compile(Exp),
     C0#croute{regex=Exp1}.
 </diff>
      <filename>src/smak_route.erl</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7df7158164ced347c3409fe690ef14e82de0a6c8</id>
    </parent>
  </parents>
  <author>
    <name>Daniel Lundqvist</name>
    <email>daniel@malarhojden.nu</email>
  </author>
  <url>http://github.com/skarab/smak/commit/057858bfbc617b67ff37131a90eaf43c58e5ec06</url>
  <id>057858bfbc617b67ff37131a90eaf43c58e5ec06</id>
  <committed-date>2009-07-25T07:01:35-07:00</committed-date>
  <authored-date>2009-07-23T08:39:01-07:00</authored-date>
  <message>Anchor route regexps.

Otherwise we get false matches.

And according to comment in top of file, it should be done.</message>
  <tree>f420dd24142294b0f2e2049d26318d67b5e93218</tree>
  <committer>
    <name>Hunter Morris</name>
    <email>huntermorris@gmail.com</email>
  </committer>
</commit>
