Skip to content

Commit e4e3e34

Browse files
committed
fix: regex for the deprecated images
1 parent e007d13 commit e4e3e34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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

0 commit comments

Comments
 (0)