From 91e05b4d5a992c54c2dd7febd86fb73ea85d715d Mon Sep 17 00:00:00 2001 From: Samuel Imolorhe Date: Wed, 29 May 2024 18:20:45 +0200 Subject: [PATCH] added additional root object mention cleanup --- src/json-validation.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/json-validation.ts b/src/json-validation.ts index 1c62a6c..bba656c 100644 --- a/src/json-validation.ts +++ b/src/json-validation.ts @@ -110,6 +110,7 @@ export class JSONValidation { const message = error.message // don't mention root object .replaceAll("in `#` ", "") + .replaceAll("at `#`", "") .replaceAll("/", ".") .replaceAll("#.", ""); return message;