From d5f4fcf0eea1d2ac1f9a09ca7cb40c595fad6a79 Mon Sep 17 00:00:00 2001 From: Hector Alfaro Date: Thu, 5 May 2022 14:23:26 -0400 Subject: [PATCH] replace hacky search with includes --- .github/actions-scripts/content-changes-table-comment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions-scripts/content-changes-table-comment.js b/.github/actions-scripts/content-changes-table-comment.js index 717a9d5e8b..24f21b5cc8 100755 --- a/.github/actions-scripts/content-changes-table-comment.js +++ b/.github/actions-scripts/content-changes-table-comment.js @@ -80,7 +80,7 @@ for (const file of articleFiles) { for (const plan of shortAndPlanNames) { // walk by the plan names since we generate links differently for most plans - const versions = fileVersions.filter((fileVersion) => fileVersion.indexOf(plan[1]) !== -1) + const versions = fileVersions.filter((fileVersion) => fileVersion.includes(plan[1])) // plan[0] is the shortName (i.e., fpt) // plan[1] is the planName (i.e., free-pro-team)