Fix link matcher iteration direction

This commit is contained in:
Daniel Imms
2017-02-17 10:22:55 -08:00
parent a10ee8f58c
commit e6fc80c13b
+1 -1
View File
@@ -123,7 +123,7 @@ export class Linkifier {
return;
}
const text = row.textContent;
for (let i = 0; i < this._linkMatchers.length; i--) {
for (let i = 0; i < this._linkMatchers.length; i++) {
const matcher = this._linkMatchers[i];
const uri = this._findLinkMatch(text, matcher.regex, matcher.matchIndex);
if (uri) {