Details
Description
When org.jbehave.core.steps.PatternVariantBuilder#variantsFor is called, the following regex is used -
"(.*?)?(\\{((.*?)(\\|)?)*?\\})(.*)"
.
Matching with this regex can be very lengthy and CPU intensive when there is an unmatched curly bracket for example, like here:
create entity of type $entityType {set properties $propertyNames to values $propertyValues
Activity
Mauro Talevi
made changes -
Field | Original Value | New Value |
---|---|---|
Issue Type | Bug [ 1 ] | Improvement [ 4 ] |
Fix Version/s | 3.9 [ 19035 ] |
Mauro Talevi
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
I've created pull requests for this issue on github.