MCPcopy Index your code
hub / github.com/github/docs / canConditionalBeRemoved

Function canConditionalBeRemoved

script/helpers/remove-liquid-statements.js:261–267  ·  view source on GitHub ↗
(supportedVersions, conditional)

Source from the content-addressed store, hash-verified

259// If all supported versions show up in the arguments, it's not necessary! Additionally, builds in support
260// for when feature-based versioning is used, which looks like "issue" versions for upcoming GHAE releases
261function canConditionalBeRemoved(supportedVersions, conditional) {
262 if (typeof conditional !== 'string') throw new Error('Expecting a string.')
263
264 const containsAllVersions = supportedVersions.every((arg) => conditional.includes(arg))
265 const hasGhaeRange = ghaeRangeRegex.test(conditional)
266 return containsAllVersions && !hasGhaeRange
267}

Callers 1

removeLiquidStatementsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected