Skip to content

Commit

Permalink
change case for rust.regex 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed May 8, 2023
1 parent cb5e327 commit 67c2559
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion spec/01-unit/01-db/01-schema/06-routes_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1356,7 +1356,7 @@ describe("routes schema (flavor = traditional_compatible)", function()
id = a_valid_uuid,
name = "my_route",
protocols = { "http" },
paths = { "~/\\/*/user$" },
paths = { "~/[abc/*/user$" },
service = { id = another_uuid },
}
route = Routes:process_auto_fields(route, "insert")
Expand All @@ -1366,4 +1366,18 @@ describe("routes schema (flavor = traditional_compatible)", function()
assert.matches("Router Expression failed validation", errs["@entity"][1],
nil, true)
end)

it("don't fail when rust.regex update to 1.8", function()
local route = {
id = a_valid_uuid,
name = "my_route",
protocols = { "http" },
paths = { "~/\\/*/user$" },
service = { id = another_uuid },
}
route = Routes:process_auto_fields(route, "insert")
local ok, errs = Routes:validate_insert(route)
assert.truthy(ok)
assert.falsy(errs["@entity"])
end)
end)

0 comments on commit 67c2559

Please sign in to comment.