1
0
mirror of synced 2025-12-30 03:01:36 -05:00

replace hacky search with includes

This commit is contained in:
Hector Alfaro
2022-05-05 14:23:26 -04:00
parent c3a9580903
commit d5f4fcf0ee

View File

@@ -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)