Skip to content

Commit d71854d

Browse files
authored
fix: regex for the deprecated images (#139)
1 parent e007d13 commit d71854d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/metric/deprecated-images/deprecated-images.collector.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { DeprecatedImageDto } from './deprecated-image.dto';
66
const logger = cfLogs.Logger('codefresh:containerLogger');
77

88
// eslint-disable-next-line no-control-regex
9-
const DEPRECATED_IMAGE_REGEX = /^\u001b\[31m\u001b\[1m\[DEPRECATION NOTICE].+?Suggest the author of (?<image>.+?) to/;
9+
const DEPRECATED_IMAGE_REGEX = /^(?:\u001b\[31m\u001b\[1m)?\[DEPRECATION NOTICE].+?Suggest the author of (?<image>.+?) to/;
1010

1111
class DeprecatedImagesCollector {
1212

service.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version: 1.12.0
1+
version: 1.12.1

0 commit comments

Comments
 (0)