closes #760 - fixes pattern matching algorithm
Merge pull request #763 from ractivejs/gh-760

gh-760