Skip to content

Commit 7a8996b

Browse files
committed
fix: applied improvements from code review
1 parent fc6d3a8 commit 7a8996b

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/WebExpress.WebCore/WebHtml/HtmlElement.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ public IHtmlElement RemoveStyle(params string[] styles)
250250
}
251251

252252
/// <summary>
253-
/// Clear all elements frrom the html element.
253+
/// Clear all elements from the html element.
254254
/// </summary>
255255
/// <returns>The current instance for method chaining.</returns>
256256
public IHtmlElement Clear()

src/WebExpress.WebCore/WebHtml/IHtmlElement.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public interface IHtmlElement : IHtmlNode
7171
IHtmlElement Add(params IHtmlAttribute[] attributes);
7272

7373
/// <summary>
74-
/// Clear all elements frrom the html element.
74+
/// Clear all elements from the html element.
7575
/// </summary>
7676
/// <returns>The current instance for method chaining.</returns>
7777
IHtmlElement Clear();

src/WebExpress.WebCore/WebPackage/PackageBuilder.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,8 @@ private static string Find(string path, string fileName)
333333
{
334334
var matches = Directory
335335
.GetFiles(path, "*.*", SearchOption.AllDirectories)
336-
.Where(x => x.Replace('\\', '/').EndsWith(normalizedTail, StringComparison.OrdinalIgnoreCase));
336+
.Select(x => x.Replace('\\', '/'))
337+
.Where(x => x.EndsWith(normalizedTail, StringComparison.OrdinalIgnoreCase));
337338

338339
foreach (var f in matches)
339340
{

0 commit comments

Comments
 (0)