Skip to content

Commit 1c1f45c

Browse files
committed
Remove global flag from composer version regex
1 parent b7bfc03 commit 1c1f45c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build-packages/magento-scripts/lib/util/config-file-validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const fileExistsValidator = (value) => {
1616
}
1717

1818
const composerVersionRegex =
19-
/^latest-(\d+\.\d+\.?(x|\d)+?)$|^latest-stable$|^latest-preview$|^latest-(\d+\.x)$|^(\d+\.\d+\.\d+?)$/gi
19+
/^latest-(\d+\.\d+\.?(x|\d)+?)$|^latest-stable$|^latest-preview$|^latest-(\d+\.x)$|^(\d+\.\d+\.\d+?)$/i
2020

2121
/**
2222
* @type {Joi.CustomValidator<string>}

0 commit comments

Comments
 (0)