diff --git a/build.gradle b/build.gradle index 4437e36b..aa119dc8 100644 --- a/build.gradle +++ b/build.gradle @@ -35,7 +35,7 @@ dependencies { implementation 'org.apache.logging.log4j:log4j-slf4j2-impl:2.23.0' // for input generation - implementation 'com.github.curious-odd-man:rgxgen:1.4' + implementation 'com.github.curious-odd-man:rgxgen:2.0' // applet installation implementation 'org.apache.ant:ant:1.10.14' diff --git a/src/main/java/jcprofiler/profiling/AbstractProfiler.java b/src/main/java/jcprofiler/profiling/AbstractProfiler.java index c93d01ed..a7b854b4 100644 --- a/src/main/java/jcprofiler/profiling/AbstractProfiler.java +++ b/src/main/java/jcprofiler/profiling/AbstractProfiler.java @@ -219,7 +219,7 @@ protected void generateInputs(int size) { // regex if (args.dataRegex != null) { log.info("Generating inputs from regular expression {}.", args.dataRegex); - final RgxGen rgxGen = new RgxGen(args.dataRegex); + final RgxGen rgxGen = RgxGen.parse(args.dataRegex); for (int i = 0; i < size * 100; i++) { final String input = rgxGen.generate(rdn);