Bug 42058 - subst() doesn't return the original string when no changes occur
Summary: subst() doesn't return the original string when no changes occur
Status: NEW
Alias: None
Product: Regexp
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: Jakarta Notifications Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-05 08:32 UTC by Robert Flaherty
Modified: 2007-04-05 08:32 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Flaherty 2007-04-05 08:32:27 UTC
Per the documentation, the returned string should be the input string if any 
replacement occurs.  I haven't scanned all previous releases to see if this 
actually broke or was never implemented per the doc.  For now I string compare 
the input and result strings, but it is possible for them to be the same but 
have been replaced if the consumer obviously replaced with the match.