diff --git a/src/Tingle.Extensions.PhoneValidators/Telkom/TelkomPhoneNumberAttribute.cs b/src/Tingle.Extensions.PhoneValidators/Telkom/TelkomPhoneNumberAttribute.cs index a7733ce..a1ef127 100644 --- a/src/Tingle.Extensions.PhoneValidators/Telkom/TelkomPhoneNumberAttribute.cs +++ b/src/Tingle.Extensions.PhoneValidators/Telkom/TelkomPhoneNumberAttribute.cs @@ -16,7 +16,7 @@ public TelkomPhoneNumberAttribute() : base("The field {0} must be a valid Telkom /// public override bool IsValid(object? value) { - static bool IsValidByRegEx(string value) => TelkomPhoneNumberValidator.Expression.IsMatch(value); + static bool IsValidByRegEx(string value) => TelkomPhoneNumberValidator.Expression.IsMatch(value); if (value is string s && !string.IsNullOrEmpty(s)) return IsValidByRegEx(s); diff --git a/src/Tingle.Extensions.Primitives/Duration.cs b/src/Tingle.Extensions.Primitives/Duration.cs index 9fcb40b..3bb2c88 100644 --- a/src/Tingle.Extensions.Primitives/Duration.cs +++ b/src/Tingle.Extensions.Primitives/Duration.cs @@ -1,5 +1,4 @@ -using System; -using System.ComponentModel; +using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Text; diff --git a/src/Tingle.Extensions.Primitives/Money.cs b/src/Tingle.Extensions.Primitives/Money.cs index 553efa5..477a987 100644 --- a/src/Tingle.Extensions.Primitives/Money.cs +++ b/src/Tingle.Extensions.Primitives/Money.cs @@ -199,7 +199,7 @@ public static Money Parse(string s, IFormatProvider? provider, Currency? currenc public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, Currency? currency, out Money result) { result = default; - if (currency is null &&!TryExtractCurrencyFromString(s, out s, out currency)) return false; + if (currency is null && !TryExtractCurrencyFromString(s, out s, out currency)) return false; if (double.TryParse(s, NumberStyles.Currency, GetFormatProvider(currency, provider), out var amountD)) {