<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -275,6 +275,12 @@
       var param_names = [];
       // if path is a string turn it into a regex
       if (path.constructor == String) {
+        
+        // Needs to be explicitly set because IE will maintain the index unless NULL is returned,
+        // which means that with two consecutive routes that contain params, the second set of params will not be found and end up in splat instead of params
+        // https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/RegExp/lastIndex        
+        PATH_NAME_MATCHER.lastIndex = 0;
+        
         // find the names
         while ((path_match = PATH_NAME_MATCHER.exec(path)) != null) {
           param_names.push(path_match[1]);</diff>
      <filename>lib/sammy.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e9ead6af38aaac4877ef5e166e9d792491cd3285</id>
    </parent>
  </parents>
  <author>
    <name>Scott McMillin</name>
    <email>scott@lifesnapz.com</email>
  </author>
  <url>http://github.com/quirkey/sammy/commit/eef20c95e73537ae3940ba2f495ac934294d8177</url>
  <id>eef20c95e73537ae3940ba2f495ac934294d8177</id>
  <committed-date>2009-11-04T12:56:11-08:00</committed-date>
  <authored-date>2009-11-04T11:00:02-08:00</authored-date>
  <message>Fixed a bug in IE only where with two consecutive routes that contain params, the second set of params will not be found and end up in splat instead of params.</message>
  <tree>99f4247af76b10a70a103293d0e52a01a282b7b8</tree>
  <committer>
    <name>Aaron Quint</name>
    <email>aaron@quirkey.com</email>
  </committer>
</commit>
