mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-13 08:53:48 +00:00
Fixed escape sequences that were written as plain characters
This commit is contained in:
6 files changed
+8
-8
No files matched your search
@@ -28,7 +28,7 @@ public sealed class WebTextContentExtractorTests
|
||||
[Test]
|
||||
public void TheByteOrderMarkAndLineEndingsAreNormalized()
|
||||
{
|
||||
var page = WebTextContentExtractor.Extract("first\r\nsecond\rthird\n", "text/plain", URL);
|
||||
var page = WebTextContentExtractor.Extract("\uFEFFfirst\r\nsecond\rthird\n", "text/plain", URL);
|
||||
Assert.That(page.Markdown, Is.EqualTo("first\nsecond\nthird"), "The byte order mark is not part of the text, and the line endings are unified just as they are for an extracted page.");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user