Closed tjosepo closed 2 years ago
Tiny issue I noticed in the loop of https://wicg.github.io/urlpattern/#create-a-component-match-result, while working on an implementation:
Let index be 1. While index is less than Get(execResult, "length"): Let name be component’s group name list[index − 1]. Let value be Get(execResult, ToString(index). Set groups[name] to value.
Let name be component’s group name list[index − 1]. Let value be Get(execResult, ToString(index). Set groups[name] to value.
index is never incremented, and the loop will never end.
Thanks for catching this!
Tiny issue I noticed in the loop of https://wicg.github.io/urlpattern/#create-a-component-match-result, while working on an implementation:
index is never incremented, and the loop will never end.