Skip to content

Commit 80af59e

Browse files
authored
Merge branch '2dust:master' into master
2 parents 84a6a3f + 947c84c commit 80af59e

29 files changed

Lines changed: 615 additions & 303 deletions

v2rayN/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22

33
<PropertyGroup>
4-
<Version>7.16.9</Version>
4+
<Version>7.17.0</Version>
55
</PropertyGroup>
66

77
<PropertyGroup>

v2rayN/ServiceLib/Common/Extension.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ public static class Extension
66
{
77
public static bool IsNullOrEmpty([NotNullWhen(false)] this string? value)
88
{
9-
return string.IsNullOrEmpty(value) || string.IsNullOrWhiteSpace(value);
9+
return string.IsNullOrWhiteSpace(value) || string.IsNullOrEmpty(value);
1010
}
1111

12-
public static bool IsNullOrWhiteSpace([NotNullWhen(false)] this string? value)
12+
public static bool IsNotEmpty([NotNullWhen(false)] this string? value)
1313
{
14-
return string.IsNullOrWhiteSpace(value);
14+
return !string.IsNullOrWhiteSpace(value);
1515
}
1616

17-
public static bool IsNotEmpty([NotNullWhen(false)] this string? value)
17+
public static string? NullIfEmpty(this string? value)
1818
{
19-
return !string.IsNullOrEmpty(value);
19+
return string.IsNullOrWhiteSpace(value) ? null : value;
2020
}
2121

2222
public static bool BeginWithAny(this string s, IEnumerable<char> chars)

0 commit comments

Comments
 (0)