From 5bed45879c71a014e5ac6474debc1d1c5a88600c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Santanch=C3=A8?= Date: Thu, 11 Jan 2024 20:08:03 -0300 Subject: [PATCH] feat (report/bilou): including punctuation --- src/adonisjs/public/report/js/report-annotations.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/adonisjs/public/report/js/report-annotations.js b/src/adonisjs/public/report/js/report-annotations.js index dc113e79..b3dafedb 100644 --- a/src/adonisjs/public/report/js/report-annotations.js +++ b/src/adonisjs/public/report/js/report-annotations.js @@ -300,6 +300,8 @@ class ReportManager { tokens.push([tk, tks, c-1, 'O', null]) tk = '' tks = -1 + if (c < text.length && ReportManager.septoken.includes(text[c])) + tokens.push([text[c], c, c, 'O', null]) } } else { if (tks == -1) @@ -407,6 +409,8 @@ class ReportManager { ReportManager.separators = [ ' ', '\n', '\r', '\t', '.', ',', ';', ':', '(', ')', '[', ']', '{', '}'] + ReportManager.septoken = [ + '.', ',', ';', ':', '(', ')', '[', ']', '{', '}'] // Copy of the same constants in annotator.js // isc: Illness Script Components