Skip to content

Commit 356f479

Browse files
committed
V2025.7.1
1 parent 922b742 commit 356f479

File tree

6 files changed

+28
-23
lines changed

6 files changed

+28
-23
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
## 2025.7.1
4+
### Breaking Changes
5+
None
6+
### New APIs
7+
None
8+
### Fixes
9+
#### Helpers
10+
- Fixed an issue where `StringHelpers::isValidUrl()` did not work correctly
11+
312
## 2025.7.0
413
### Breaking Changes
514
#### App

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ endif()
2020
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
2121

2222
#libnick Definition
23-
project ("libnick" LANGUAGES C CXX VERSION 2025.7.0 DESCRIPTION "A cross-platform base for native Nickvision applications.")
23+
project ("libnick" LANGUAGES C CXX VERSION 2025.7.1 DESCRIPTION "A cross-platform base for native Nickvision applications.")
2424
include(CMakePackageConfigHelpers)
2525
include(GNUInstallDirs)
2626
include(CTest)

Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ PROJECT_NAME = "libnick"
4848
# could be handy for archiving the generated documentation or if some version
4949
# control system is used.
5050

51-
PROJECT_NUMBER = "2025.7.0"
51+
PROJECT_NUMBER = "2025.7.1"
5252

5353
# Using the PROJECT_BRIEF tag one can provide an optional one line description
5454
# for a project that appears at the top of each page and should give viewer a

manual/README.md

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,14 @@
66

77
libnick provides Nickvision apps with a common set of cross-platform APIs for managing system and desktop app functionality such as network management, taskbar icons, translations, app updates, and more.
88

9-
## 2025.7.0
9+
## 2025.7.1
1010
### Breaking Changes
11-
#### App
12-
- Removed `App:InterProcessCommunicator` (can be easily recreated using the `Network::Socket` class)
13-
#### Logging
14-
- Removed module
15-
#### Network
16-
- Replaced dependency of `libcurl` with `cpr`
17-
- Renamed `Web::fetchJson()` to `Web::getJson()`
18-
- Removed `CurlEasy` class
11+
None
1912
### New APIs
20-
#### App
21-
- Added `isPortable` parameter to `DataFileManager` to store config files in the executable directory instead
22-
#### Helpers
23-
- Added `PairHash` class
24-
- Added `CodeHelpers::combineHash()` function
25-
#### System
26-
- Added `DependencySearchOption` enum
27-
- Added `search` parameter to `Environment::findDependency()` to specify a `DependencySearchOption`
13+
None
2814
### Fixes
29-
#### System
30-
- Fixed `Process::pause()` and `Process::resume()` not working
15+
#### Helpers
16+
- Fixed an issue where `StringHelpers::isValidUrl()` did not work correctly
3117

3218
## Dependencies
3319
The following are a list of dependencies used by libnick.

src/helpers/stringhelpers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ namespace Nickvision::Helpers
105105
{
106106
return false;
107107
}
108-
static std::regex urlRegex{ R"(^(ht|f)tp(s?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&%\$#_]*)?$)" };
108+
static std::regex urlRegex{ R"(^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$)" };
109109
return std::regex_match(s, urlRegex);
110110
}
111111

tests/stringtests.cpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,24 @@ TEST(StringTests, UrlValidity2)
100100

101101
TEST(StringTests, UrlValidity3)
102102
{
103-
ASSERT_TRUE(StringHelpers::isValidUrl("https://microsoft"));
103+
ASSERT_FALSE(StringHelpers::isValidUrl("https://microsoft"));
104104
}
105105

106106
TEST(StringTests, UrlValidity4)
107107
{
108108
ASSERT_FALSE(StringHelpers::isValidUrl("asderm"));
109109
}
110110

111+
TEST(StringTests, UrlValidity5)
112+
{
113+
ASSERT_TRUE(StringHelpers::isValidUrl("https://www.youtube.com/watch?v=eCq3G6LGhe8"));
114+
}
115+
116+
TEST(StringTests, UrlValidity6)
117+
{
118+
ASSERT_TRUE(StringHelpers::isValidUrl("https://www.youtube.com/watch?v=UKwSQSFN4Nw&list=PLXJg25X-OulsVsnvZ7RVtSDW-id9_RzAO"));
119+
}
120+
111121
TEST(StringTests, Join1)
112122
{
113123
ASSERT_EQ(StringHelpers::join({ "hi", "bye" }, "|"), "hi|bye");

0 commit comments

Comments
 (0)