@adinsure-ops/ops-cli 5.0.10 → 5.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOGS.md +4 -0
- package/lib/lib/gitlab.js +2 -2
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/CHANGELOGS.md
CHANGED
package/lib/lib/gitlab.js
CHANGED
|
@@ -34,10 +34,10 @@ export default class GitLab {
|
|
|
34
34
|
});
|
|
35
35
|
// eslint-disable-next-line unicorn/no-array-for-each, @typescript-eslint/no-explicit-any
|
|
36
36
|
response.data.forEach((tag) => {
|
|
37
|
-
const regex = new RegExp(`${prefix}(.*)`);
|
|
37
|
+
const regex = new RegExp(`${prefix}(v\\d*\\.\\d*\\.\\d*-\\d{4}.*)`);
|
|
38
38
|
let searchTag = tag;
|
|
39
39
|
const match = tag.name.match(regex);
|
|
40
|
-
if (match[1]) {
|
|
40
|
+
if (match !== null && match[1]) {
|
|
41
41
|
searchTag = match[1];
|
|
42
42
|
}
|
|
43
43
|
const customOptions = {
|
package/oclif.manifest.json
CHANGED