From 14cafe7686989e64e0239faa18e6b2c7685c8e52 Mon Sep 17 00:00:00 2001 From: abhinavgandham Date: Tue, 6 May 2025 15:44:16 +1000 Subject: [PATCH 1/3] DOC-3151: Changed word-capture regex for abbreviations to allow larger abbreviations. --- modules/ROOT/pages/7.9.0-release-notes.adoc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/ROOT/pages/7.9.0-release-notes.adoc b/modules/ROOT/pages/7.9.0-release-notes.adoc index 6394d0a9a6..9471c7f2fc 100644 --- a/modules/ROOT/pages/7.9.0-release-notes.adoc +++ b/modules/ROOT/pages/7.9.0-release-notes.adoc @@ -153,11 +153,12 @@ For information on using Enhanced Skins & Icon Packs, see: xref:enhanced-skins-a {productname} {release-version} also includes the following bug fix: -// === -// #TINY-vwxyz1 +=== Changed word-capture regular expression for abbreviations to allow larger abbreviations. +// #TINY-11560 -// CCFR here. +Previously in {productname}, an issue was identified where words or letters were inadvertently duplicated during pattern matching. This behavior particularly affected the handling of acronyms, resulting in inconsistent behavior. +With the release of {productname} {release-version}, this issue has been resolved. Pattern matching now performs as expected, ensuring text is processed accurately without unintended duplication. [[security-fixes]] == Security fixes From ffbe0a6ce55ca5eb4259ee5c0d356cdb3c3a0345 Mon Sep 17 00:00:00 2001 From: abhinavgandham Date: Wed, 7 May 2025 11:17:52 +1000 Subject: [PATCH 2/3] DOC-3151: Refined content and included example of the fix. --- modules/ROOT/pages/7.9.0-release-notes.adoc | 26 ++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/modules/ROOT/pages/7.9.0-release-notes.adoc b/modules/ROOT/pages/7.9.0-release-notes.adoc index 9471c7f2fc..16bee67dd4 100644 --- a/modules/ROOT/pages/7.9.0-release-notes.adoc +++ b/modules/ROOT/pages/7.9.0-release-notes.adoc @@ -153,12 +153,32 @@ For information on using Enhanced Skins & Icon Packs, see: xref:enhanced-skins-a {productname} {release-version} also includes the following bug fix: -=== Changed word-capture regular expression for abbreviations to allow larger abbreviations. +=== Improved handling of overlapping matches in abbreviation detection // #TINY-11560 -Previously in {productname}, an issue was identified where words or letters were inadvertently duplicated during pattern matching. This behavior particularly affected the handling of acronyms, resulting in inconsistent behavior. +Previously in {productname}, an issue occurred during pattern matching where overlapping regular expression matches caused duplicated content when processing abbreviations. For example, in the string `D. dd.D.`, multiple overlapping patterns such as `D.`, `dd.D`, and a final `D.` could be incorrectly matched and processed more than once. This resulted in unexpected duplication in the editor, such as `D. dd.DDD.`. -With the release of {productname} {release-version}, this issue has been resolved. Pattern matching now performs as expected, ensuring text is processed accurately without unintended duplication. +This behavior was caused by insufficient overlap detection when identifying match regions, leading to multiple reinsertions of already matched substrings. The issue has now been resolved in {productname} {release-version} by refining the pattern-matching logic to accurately detect and avoid overlapping matches. The updated implementation ensures that each abbreviation is matched and processed only once, eliminating duplicated insertions and preserving the original content structure. + +.Example before the fix: +[source,html] +---- + +

D. dd.D.

+ + +

D. dd.DDD.

+---- + +.Example after the fix +[source,html] +---- + +

D. dd.D.

+ + +

D. dd.D.

+---- [[security-fixes]] == Security fixes From 398803200d742d45116a2da921304901982f424a Mon Sep 17 00:00:00 2001 From: "CODE:AG" <57781325+abhinavgandham@users.noreply.github.com> Date: Wed, 7 May 2025 11:20:25 +1000 Subject: [PATCH 3/3] Update modules/ROOT/pages/7.9.0-release-notes.adoc --- modules/ROOT/pages/7.9.0-release-notes.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ROOT/pages/7.9.0-release-notes.adoc b/modules/ROOT/pages/7.9.0-release-notes.adoc index 16bee67dd4..058a3a9b51 100644 --- a/modules/ROOT/pages/7.9.0-release-notes.adoc +++ b/modules/ROOT/pages/7.9.0-release-notes.adoc @@ -170,7 +170,7 @@ This behavior was caused by insufficient overlap detection when identifying matc

D. dd.DDD.

---- -.Example after the fix +.Example after the fix: [source,html] ----