diff --git a/cvat/apps/engine/views.py b/cvat/apps/engine/views.py index cef4b98a565a..ef77ae9d7cec 100644 --- a/cvat/apps/engine/views.py +++ b/cvat/apps/engine/views.py @@ -470,7 +470,7 @@ def dataset_export(self, request, pk): if not dst_format: dst_format = DatumaroTask.DEFAULT_FORMAT dst_format = dst_format.lower() - if 100 < len(dst_format) or not re.fullmatch(r"^[\w_-]+$", dst_format): + if dst_format not in DatumaroTask.get_export_formats(): raise serializers.ValidationError( "Unexpected parameter 'format' specified for the request")