Skip to content

Commit b944700

Browse files
committed
chore: regexp input is under control so marking as false positive
1 parent ef016c5 commit b944700

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/ReconcilerUtils.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,9 @@ private static boolean matchesResourceType(String resourceTypeName,
145145
} else {
146146
// extract matching information from URI in the message if available
147147
final var message = exception.getMessage();
148-
final var regex = Pattern.compile(".*http(s?)://[^/]*/api(s?)/(\\S*).*").matcher(message);
148+
final var regex = Pattern
149+
.compile(".*http(s?)://[^/]*/api(s?)/(\\S*).*") // NOSONAR: input is controlled
150+
.matcher(message);
149151
if (regex.matches()) {
150152
var group = regex.group(3);
151153
if (group.endsWith(".")) {

0 commit comments

Comments
 (0)