mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-13 20:47:24 +00:00
Merge remote-tracking branch 'origin/fix/VC4_Fixes' into ConnectPro_v1.2
This commit is contained in:
commit
4fa46ff5a0
1 changed files with 16 additions and 8 deletions
|
|
@ -48,11 +48,15 @@ namespace ICD.Common.Utils
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
Regex regex = new Regex(MODEL_NAME_REGEX);
|
string versionResult = VersionResult;
|
||||||
Match match = regex.Match(VersionResult);
|
if (!String.IsNullOrEmpty(versionResult))
|
||||||
|
{
|
||||||
|
Regex regex = new Regex(MODEL_NAME_REGEX);
|
||||||
|
Match match = regex.Match(versionResult);
|
||||||
|
|
||||||
if (match.Success)
|
if (match.Success)
|
||||||
return match.Groups[1].Value;
|
return match.Groups[1].Value;
|
||||||
|
}
|
||||||
|
|
||||||
ServiceProvider.TryGetService<ILoggerService>()
|
ServiceProvider.TryGetService<ILoggerService>()
|
||||||
.AddEntry(eSeverity.Warning, "Unable to get model name from \"{0}\"", VersionResult);
|
.AddEntry(eSeverity.Warning, "Unable to get model name from \"{0}\"", VersionResult);
|
||||||
|
|
@ -68,11 +72,15 @@ namespace ICD.Common.Utils
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
Regex regex = new Regex(MODEL_VERSION_REGEX);
|
string versionResult = VersionResult;
|
||||||
Match match = regex.Match(VersionResult);
|
if (!String.IsNullOrEmpty(versionResult))
|
||||||
|
{
|
||||||
|
Regex regex = new Regex(MODEL_VERSION_REGEX);
|
||||||
|
Match match = regex.Match(VersionResult);
|
||||||
|
|
||||||
if (match.Success)
|
if (match.Success)
|
||||||
return new Version(match.Groups[1].Value);
|
return new Version(match.Groups[1].Value);
|
||||||
|
}
|
||||||
|
|
||||||
ServiceProvider.TryGetService<ILoggerService>()
|
ServiceProvider.TryGetService<ILoggerService>()
|
||||||
.AddEntry(eSeverity.Warning, "Unable to get model version from \"{0}\"", VersionResult);
|
.AddEntry(eSeverity.Warning, "Unable to get model version from \"{0}\"", VersionResult);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue