Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ public int GetHashWithoutLastUpdate()
/// <returns>RankingUrl</returns>
public static RankingUrl From(string url)
{
var fixedUrl = url.Replace("\\", "/");
const string value = ".html";
var cleanUrl = url.EndsWith(value) ? url.Remove(url.Length - value.Length) : url;
var cleanUrl = fixedUrl.EndsWith(value) ? fixedUrl.Remove(fixedUrl.Length - value.Length) : fixedUrl;
return new RankingUrl { Url = url, PageEnum = GetPageEnum(cleanUrl) };
}

Expand Down Expand Up @@ -93,4 +94,4 @@ public string GetBaseDomain()
var baseDomain = Url[..lastUrlIndex] + "/";
return baseDomain;
}
}
}
2 changes: 1 addition & 1 deletion PoliNetwork.Graduatorie.Parser/Objects/HtmlPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ public bool SaveLocal(string htmlFolder, bool force = false)
return false;
}
}
}
}
Loading