From 46233a24aef1b9cd676d9644a335bac6b7165032 Mon Sep 17 00:00:00 2001 From: Stephan Date: Mon, 10 Jan 2022 15:57:24 +0100 Subject: [PATCH] fix --- .github/workflows/assign-milestones.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/assign-milestones.js b/.github/workflows/assign-milestones.js index 5f1734b..4d87fde 100644 --- a/.github/workflows/assign-milestones.js +++ b/.github/workflows/assign-milestones.js @@ -25,7 +25,7 @@ module.exports = async ({github, context}) => { function last2(s) { const pos1 = s.lastIndexOf('/') const pos2 = s.lastIndexOf('/', pos1-1) - return [ s.substring(pos2 + 1, pos1), s.substring(pos + 1) ] + return [ s.substring(pos2 + 1, pos1), s.substring(pos1 + 1) ] } // insanely enough, due to the total lack of documentation, this