make the pattern a string in all-versions so it can be serialized, and regex-ify it during implementation
This commit is contained in:
@@ -105,7 +105,7 @@ describe('lint Liquid versioning', () => {
|
||||
function validateVersion(version) {
|
||||
const isSupported = allowedVersionNames.includes(version)
|
||||
const isException = Object.values(allVersions).some(
|
||||
(v) => v.allowedInlinePattern && v.allowedInlinePattern.test(version)
|
||||
(v) => v.allowedInlinePattern && new RegExp(v.allowedInlinePattern).test(version)
|
||||
)
|
||||
const isValid = isSupported || isException
|
||||
|
||||
|
||||
Reference in New Issue
Block a user