Skip to content

Commit 91f363b

Browse files
committed
.
1 parent e7a8f4d commit 91f363b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/WireMock.Net.Abstractions/Models/IdOrTexts.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public readonly struct IdOrTexts
1616
public string? Id { get; }
1717

1818
/// <summary>
19-
/// The Text.
19+
/// The Texts.
2020
/// </summary>
2121
public IReadOnlyList<string> Texts { get; }
2222

@@ -41,7 +41,7 @@ public IdOrTexts(string? id, IReadOnlyList<string> texts)
4141
}
4242

4343
/// <summary>
44-
/// When Id is defined, return process the Id, else process the Texts.
44+
/// When Id is defined, process the Id, else process the Texts.
4545
/// </summary>
4646
/// <param name="id">Callback to process the id.</param>
4747
/// <param name="texts">Callback to process the texts.</param>

src/WireMock.Net/Util/WireMockProtoFileResolver.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public WireMockProtoFileResolver(IReadOnlyCollection<string> protoDefinitions)
3030
foreach (var extraProtoDefinition in protoDefinitions.Skip(1))
3131
{
3232
var firstNonEmptyLine = extraProtoDefinition.Split(['\r', '\n']).FirstOrDefault(l => !string.IsNullOrEmpty(l));
33-
if (firstNonEmptyLine != null && TryGetValidFileName(firstNonEmptyLine.TrimStart(['\r', '\n', '/', ' ']), out var validFileName))
33+
if (firstNonEmptyLine != null && TryGetValidFileName(firstNonEmptyLine.TrimStart(['/', ' ']), out var validFileName))
3434
{
3535
_files.Add(validFileName, extraProtoDefinition);
3636
}

0 commit comments

Comments
 (0)