Skip to content

Commit ffbe0a6

Browse files
DOC-3151: Refined content and included example of the fix.
1 parent 14cafe7 commit ffbe0a6

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

modules/ROOT/pages/7.9.0-release-notes.adoc

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,32 @@ For information on using Enhanced Skins & Icon Packs, see: xref:enhanced-skins-a
153153

154154
{productname} {release-version} also includes the following bug fix<es>:
155155

156-
=== Changed word-capture regular expression for abbreviations to allow larger abbreviations.
156+
=== Improved handling of overlapping matches in abbreviation detection
157157
// #TINY-11560
158158

159-
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.
159+
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.`.
160160

161-
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.
161+
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.
162+
163+
.Example before the fix:
164+
[source,html]
165+
----
166+
<!-- Original content typed by the user -->
167+
<p>D. dd.D.</p>
168+
169+
<!-- Result after pattern matching (incorrect behavior) -->
170+
<p>D. dd.DDD.</p>
171+
----
172+
173+
.Example after the fix
174+
[source,html]
175+
----
176+
<!-- Original content typed by the user -->
177+
<p>D. dd.D.</p>
178+
179+
<!-- Result after pattern matching (correct behavior) -->
180+
<p>D. dd.D.</p>
181+
----
162182

163183
[[security-fixes]]
164184
== Security fixes

0 commit comments

Comments
 (0)