diff --git a/package.json b/package.json index 540473ad82091..bca3b37168bfa 100644 --- a/package.json +++ b/package.json @@ -1790,7 +1790,7 @@ "openapi-types": "^12.1.3", "p-reflect": "2.1.0", "pbf": "3.2.1", - "peggy": "^1.2.0", + "peggy": "^4.2.0", "picomatch": "^2.3.1", "pidusage": "^3.0.2", "pirates": "^4.0.1", diff --git a/src/plugins/vis_types/timeseries/server/lib/vis_data/response_processors/series/math.test.js b/src/plugins/vis_types/timeseries/server/lib/vis_data/response_processors/series/math.test.js index a74665d54d7eb..efb7240d82d69 100644 --- a/src/plugins/vis_types/timeseries/server/lib/vis_data/response_processors/series/math.test.js +++ b/src/plugins/vis_types/timeseries/server/lib/vis_data/response_processors/series/math.test.js @@ -253,8 +253,8 @@ describe('math(resp, panel, series)', () => { series )(await mathAgg(resp, panel, series)((results) => results))([]); } catch (e) { - expect(e.message).toEqual( - 'Failed to parse expression. Expected "*", "+", "-", "/", "<", "=", ">", end of input, or whitespace but "(" found.' + expect(e.message).toMatchInlineSnapshot( + `"Failed to parse expression. Expected \\"=\\", [*/], [+\\\\-], [<>], end of input, or whitespace but \\"(\\" found."` ); } }); diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/__snapshots__/workspace_panel.test.tsx.snap b/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/__snapshots__/workspace_panel.test.tsx.snap index 6c938d237608f..7cd63b7383b2e 100644 --- a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/__snapshots__/workspace_panel.test.tsx.snap +++ b/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/__snapshots__/workspace_panel.test.tsx.snap @@ -20,7 +20,7 @@ Array [ />

- Error: Unable to parse expression: Expected "/*", "//", [ ,\\t,\\r,\\n], or function but "|" found. + Error: Unable to parse expression: Expected "/*", "//", [ \\t\\r\\n], or function but "|" found.

, "severity": "error",