From 18476a1468fb4878d3d8d77096a0613898b5727a Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Tue, 20 May 2014 17:23:32 -0700 Subject: [PATCH] Don't require us to finish the whole string with our last item. --- recentrunes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recentrunes.js b/recentrunes.js index 1208d9f..017b0a8 100644 --- a/recentrunes.js +++ b/recentrunes.js @@ -310,7 +310,7 @@ RecentRunes.prototype.parse = function(nodeType, input) { if (lastRuleMinimize) { var lastMatch = lastRuleMinimize.match( input.slice(inputIndex), input, inputIndex, this); - if (!lastMatch || lastMatch[0] != input.length - inputIndex) { + if (!lastMatch) { return null; } inputIndex += lastMatch[0];