Opened 15 years ago
Last modified 10 years ago
#4763 closed defect
[CLA] [patch] dojo.substitute() returns undefined for unknown place holders — at Initial Version
Reported by: | wolfram | Owned by: | alex |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Core | Version: | 1.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Currently dojo.string.substitute works like this:
>>> dojo.string.substitute("${i} is not defined, but ${x} is", {x:"'this'"}); undefined
but it should do this imho
>>> dojo.string.substitute("${i} is not defined, but ${x} is", {x:"'this'"}); ${i} is not defined, but 'this' is
My usecase: I am doing replacement in multiple steps and want to replace only when the right data are given.
Note: See
TracTickets for help on using
tickets.