aboutsummaryrefslogtreecommitdiff
path: root/src/mdx/mdx_parser.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/mdx/mdx_parser.zig')
-rw-r--r--src/mdx/mdx_parser.zig5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mdx/mdx_parser.zig b/src/mdx/mdx_parser.zig
index b44ab239a..3b2064c39 100644
--- a/src/mdx/mdx_parser.zig
+++ b/src/mdx/mdx_parser.zig
@@ -1043,9 +1043,8 @@ pub const MDParser = struct {
}
// Scan for end of the line.
- while (off + 3 < this.size and
- !(strings.eqlComptimeIgnoreLen(this.source.contents.ptr[off..][0..4], "\n\n\n\n") or
- strings.eqlComptimeIgnoreLen(this.source.contents.ptr[off..][0..4], "\r\n\r\n")))
+ while (!(strings.hasPrefixComptime(this.source.contents.ptr[off..], "\n\n\n\n") or
+ strings.hasPrefixComptime(this.source.contents.ptr[off..], "\r\n\r\n")))
{
off += 4;
}