Author: fschumacher
Date: Tue Oct 7 19:21:17 2014
New Revision: 1629959
URL: http://svn.apache.org/r1629959
Log:
Add a bit more javadoc to constructPattern
Modified:
jmeter/trunk/src/core/org/apache/jmeter/engine/util/ReplaceFunctionsWithStrings.java
Modified:
jmeter/trunk/src/core/org/apache/jmeter/engine/util/ReplaceFunctionsWithStrings.java
URL:
http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/engine/util/ReplaceFunctionsWithStrings.java?rev=1629959&r1=1629958&r2=1629959&view=diff
==============================================================================
---
jmeter/trunk/src/core/org/apache/jmeter/engine/util/ReplaceFunctionsWithStrings.java
(original)
+++
jmeter/trunk/src/core/org/apache/jmeter/engine/util/ReplaceFunctionsWithStrings.java
Tue Oct 7 19:21:17 2014
@@ -94,9 +94,12 @@ public class ReplaceFunctionsWithStrings
}
/**
+ * Normal regexes will be surrounded by boundary character matches to make
life easier for users.
+ * If a user doesn't want that behaviour, he can prevent the modification
by giving a regex, that
+ * starts and ends with a parenthesis.
*
- * @param value
- * @return regexp if value is not already one
+ * @param value given by user
+ * @return regex surrounded by boundary character matches, if value is not
included in parens
*/
private String constructPattern(String value) {
if (value.startsWith("(") && value.endsWith(")")) {