Am 07.10.2014 um 21:04 schrieb [email protected]:
Author: pmouawad
Date: Tue Oct 7 19:04:16 2014
New Revision: 1629955
URL: http://svn.apache.org/r1629955
Log:
Bug 57032 - Make regexes in HTTP Script Recorder more useful.
Respect spaces instead of tabs
Add javadoc
I have changed my eclipse setting and added a bit more documentation.
Thanks
Felix
Bugzilla Id: 57032
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=1629955&r1=1629954&r2=1629955&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:04:16 2014
@@ -92,12 +92,17 @@ public class ReplaceFunctionsWithStrings
}
return new StringProperty(prop.getName(), input);
}
-
+
+ /**
+ *
+ * @param value
+ * @return regexp if value is not already one
+ */
private String constructPattern(String value) {
if (value.startsWith("(") && value.endsWith(")")) {
return value;
}
- return "\\b(" + value + ")\\b";
+ return "\\b(" + value + ")\\b";
}
}