mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +00:00
mcp: simplify minify and remove eval quota
This commit is contained in:
@@ -113,8 +113,7 @@ pub const Tool = struct {
|
|||||||
};
|
};
|
||||||
|
|
||||||
pub fn minify(comptime json: []const u8) []const u8 {
|
pub fn minify(comptime json: []const u8) []const u8 {
|
||||||
@setEvalBranchQuota(100000);
|
return comptime blk: {
|
||||||
const minified = comptime blk: {
|
|
||||||
var res: []const u8 = "";
|
var res: []const u8 = "";
|
||||||
var in_string = false;
|
var in_string = false;
|
||||||
var escaped = false;
|
var escaped = false;
|
||||||
@@ -141,7 +140,6 @@ pub fn minify(comptime json: []const u8) []const u8 {
|
|||||||
}
|
}
|
||||||
break :blk res;
|
break :blk res;
|
||||||
};
|
};
|
||||||
return minified;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub const Resource = struct {
|
pub const Resource = struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user