GitHub user samuelkarp opened a pull request:

    https://github.com/apache/commons-lang/pull/124

    StrSubstitutor can preserve escapes

    StrSubstitutor can now optionally preserve the escape character for an
    escaped reference, which is useful when substitution takes place in
    multiple phases and some references are intentionally unresolved.  Prior
    to this change, an unresolved reference `${a}` and an escaped reference
    `$${a}` may result in the same string `${a}`, making it impossible for
    an additional substitution phase to distinguish between escaped
    references and non-escaped references.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/samuelkarp/commons-lang preserve-escapes

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/commons-lang/pull/124.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #124
    
----
commit e55aaa5706f031df2e8d68bdf088604c79944246
Author: Samuel Karp <sk...@amazon.com>
Date:   2016-02-03T23:45:21Z

    StrSubstitutor can preserve escapes
    
    StrSubstitutor can now optionally preserve the escape character for an
    escaped reference, which is useful when substitution takes place in
    multiple phases and some references are intentionally unresolved.  Prior
    to this change, an unresolved reference `${a}` and an escaped reference
    `$${a}` may result in the same string `${a}`, making it impossible for
    an additional substitution phase to distinguish between escaped
    references and non-escaped references.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to