Skip to content

[bug] partialMatch does not match if text that would ordinarily be matched is preceded by newlines #24

@notcancername

Description

@notcancername

partialMatch does not match after newlines:

const std = @import("std");
const Regex = @import("zig-regex/src/regex.zig").Regex;

test "partialMatch after newlines" {
    var reg = try Regex.compile(std.testing.allocator, "a");
    defer reg.deinit();
    try std.testing.expect(try reg.partialMatch("\na")); // fails
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions