Skip to content

Commit 4895c68

Browse files
Capitalize the first letter of media player if appropiate
1 parent f0b9800 commit 4895c68

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.1.0) # Threads::Threads
22

33
project(fastfetch
4-
VERSION 1.1.1
4+
VERSION 1.1.2
55
LANGUAGES C
66
)
77

src/detection/media.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ static void getMedia(FFinstance* instance, FFMediaResult* result)
336336

337337
//Check again for length, as we may have removed everything.
338338
//If we don't have subdomains, it is usually more pretty to capitalize the first letter.
339-
if(result->playerPretty.length > 0 && ffStrbufFirstIndexC(&result->playerPretty, '.') < result->playerPretty.length)
339+
if(result->playerPretty.length > 0 && ffStrbufFirstIndexC(&result->playerPretty, '.') == result->playerPretty.length)
340340
result->playerPretty.chars[0] = (char) toupper(result->playerPretty.chars[0]);
341341
}
342342

0 commit comments

Comments
 (0)