This is an automated email from the ASF dual-hosted git repository.
garydgregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push:
new d3975eccc Treat an unmatched quote as closed in ExtendedMessageFormat
(#1819)
d3975eccc is described below
commit d3975eccc4df04c67a4da23d4e1881e940c9389c
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Oct 16 10:33:47 2026 -0400
Treat an unmatched quote as closed in ExtendedMessageFormat (#1819)
---
src/changes/changes.xml | 1 +
.../java/org/apache/commons/lang3/text/ExtendedMessageFormat.java | 6 ++++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 77562c073..3731e7c6d 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -61,6 +61,7 @@ The <action> type attribute can be add,update,fix,remove.
<action issue="LANG-1837" type="fix" dev="ggregory" due-to="Aosen Xiong,
Gary Gregory">Prevent null returns from lazily initialized string
caches.</action>
<action type="fix" dev="ggregory" due-to="alhuda, Gary
Gregory">Escape CharSequence values in ToStringStyle.JSON_STYLE
(#1821).</action>
<action issue="LANG-796" type="fix" dev="ggregory" due-to="gaurav kumar
pandey, Gary Gregory">Clarify DateUtils calendar arithmetic and daylight saving
time behavior.</action>
+ <action type="fix" dev="ggregory" due-to="alhuda, Gary
Gregory">Treat an unmatched quote as closed in ExtendedMessageFormat
(#1819).</action>
<!-- ADD -->
<!-- UPDATE -->
</release>
diff --git
a/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java
b/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java
index e9a88330b..61b1266d1 100644
--- a/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java
+++ b/src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java
@@ -55,8 +55,10 @@
* found is used for this format element.
* </p>
*
- * <p>Quoting follows {@link MessageFormat}: doubled single quotes represent a
literal single quote, and an unmatched single quote is treated as closed
- * at the end of the pattern. Format elements within quoted text are treated
as literal text.</p>
+ * <p>
+ * Quoting follows {@link MessageFormat}: doubled single quotes represent a
literal single quote, and an unmatched single quote is treated as closed
+ * at the end of the pattern. Format elements within quoted text are treated
as literal text.
+ * </p>
*
* <p>
* <strong>NOTICE:</strong> The various subformat mutator methods are
considered unnecessary; they exist on the parent