diff --git a/package.json b/package.json index 284b05cd59947..15b4ef92a1238 100644 --- a/package.json +++ b/package.json @@ -1838,7 +1838,7 @@ "oboe": "^2.1.4", "openapi-types": "^12.1.3", "p-reflect": "2.1.0", - "peggy": "^1.2.0", + "peggy": "^4.2.0", "picomatch": "^2.3.1", "pirates": "^4.0.1", "piscina": "^3.2.0", diff --git a/src/platform/plugins/private/vis_types/timeseries/server/lib/vis_data/response_processors/series/math.test.js b/src/platform/plugins/private/vis_types/timeseries/server/lib/vis_data/response_processors/series/math.test.js index a74665d54d7eb..47a489081abc5 100644 --- a/src/platform/plugins/private/vis_types/timeseries/server/lib/vis_data/response_processors/series/math.test.js +++ b/src/platform/plugins/private/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."` ); } });