Update wsmaster/che-core-api-factory/src/main/java/org/eclipse/che/api/factory/server/RawDevfileUrlFactoryParameterResolver.java

Co-authored-by: Anatolii Bazko <abazko@redhat.com>
pull/683/head
Igor Vinokur 2024-05-09 12:36:08 +03:00 committed by GitHub
parent a509dd506e
commit ec3ee70f50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ public class RawDevfileUrlFactoryParameterResolver extends BaseFactoryParameterR
@Override
public boolean accept(Map<String, String> factoryParameters) {
String url = factoryParameters.get(URL_PARAMETER_NAME);
return !isNullOrEmpty(url) && PATTERN.matcher(url).matches() || containsDevfile(url);
return !isNullOrEmpty(url) && (PATTERN.matcher(url).matches() || containsDevfile(url));
}
private boolean containsDevfile(String requestURL) {