Skip to content

Commit 788bf38

Browse files
DOC-3151: Changed word-capture regex for abbreviations to allow larger abbreviations. (#3717)
* DOC-3151: Changed word-capture regex for abbreviations to allow larger abbreviations. * DOC-3151: Refined content and included example of the fix. * Update modules/ROOT/pages/7.9.0-release-notes.adoc --------- Co-authored-by: Karl Kemister-Sheppard <[email protected]>
1 parent b7fd4b6 commit 788bf38

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,32 @@ For information on using Enhanced Skins & Icon Packs, see: xref:enhanced-skins-a
185185

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

188+
=== Improved handling of overlapping matches in abbreviation detection
189+
// #TINY-11560
190+
191+
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.`.
192+
193+
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.
194+
195+
.Example before the fix:
196+
[source,html]
197+
----
198+
<!-- Original content typed by the user -->
199+
<p>D. dd.D.</p>
200+
201+
<!-- Result after pattern matching (incorrect behavior) -->
202+
<p>D. dd.DDD.</p>
203+
----
204+
205+
.Example after the fix:
206+
[source,html]
207+
----
208+
<!-- Original content typed by the user -->
209+
<p>D. dd.D.</p>
210+
211+
<!-- Result after pattern matching (correct behavior) -->
212+
<p>D. dd.D.</p>
213+
----
188214

189215
=== Inline dialog dropdowns reposition when the dialog is dragged or the window is scrolled.
190216
// TINY-11368 sub TINY-11823, TINY-11832

0 commit comments

Comments
 (0)