summaryrefslogtreecommitdiff
path: root/src/hero.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'src/hero.mjs')
-rw-r--r--src/hero.mjs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hero.mjs b/src/hero.mjs
index fcbdc17..53f3086 100644
--- a/src/hero.mjs
+++ b/src/hero.mjs
@@ -89,7 +89,7 @@ export const firstParamMatch = (tree, segments, params) => {
const paramOptions = Object.keys(tree)
.filter(s => s.startsWith(":"))
.sort(u.strSortFn);
- return u.first(paramOptions, param => firstParamMatch(tree[param], nextSegments, {
+ return u.findFirst(paramOptions, param => firstParamMatch(tree[param], nextSegments, {
...params,
[param.slice(1)]: seg
}));