From c47488479befc89b604447307a7680b717c0cfa4 Mon Sep 17 00:00:00 2001 From: tylen Date: Fri, 27 Sep 2024 21:09:13 +0000 Subject: [PATCH] base: add s tring for unrecognized platofrm id --- src/platform/base.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/platform/base.c b/src/platform/base.c index 5429445..2f716e6 100644 --- a/src/platform/base.c +++ b/src/platform/base.c @@ -15,7 +15,8 @@ const char* SUPPORTED_PLATFORM_NAMES[] = { "github.com", - "gitlab.com"}; + "gitlab.com", + "Unrecognized"}; static void throw_regex_error(int errcode, const regex_t* preg, const char* str) { char regex_error_buffer[REGEX_ERROR_STR_MAX_LEN] = {0}; @@ -160,4 +161,4 @@ PlatformIdList* identify_platfroms_from_project(const char* project_path, const lines_free(git_remote_urls); buffer_free(git_config_path_buffer); return platforms; -} \ No newline at end of file +}