Revert "DCP: previous_data match should be non-greedy"
This reverts commit 328055e6e8
due to dramatically slower processing.
This commit is contained in:
@ -216,7 +216,7 @@ class Runner::Strategy::DockerContainerPool < Runner::Strategy
|
|||||||
|
|
||||||
def decode(event_data)
|
def decode(event_data)
|
||||||
case event_data
|
case event_data
|
||||||
when /(?<previous_data>.*?)((root|python|java|user)@#{@strategy.container_id[0..11]}|#exit|{"cmd": "exit"})/m
|
when /(?<previous_data>.*)((root|python|java|user)@#{@strategy.container_id[0..11]}|#exit|{"cmd": "exit"})/m
|
||||||
# The RegEx above is used to determine unwanted output which also indicates a program termination.
|
# The RegEx above is used to determine unwanted output which also indicates a program termination.
|
||||||
# If the RegEx matches, at least two capture groups will be created.
|
# If the RegEx matches, at least two capture groups will be created.
|
||||||
# The first (called `previous_data`) contains any data before the match (including multiple lines)
|
# The first (called `previous_data`) contains any data before the match (including multiple lines)
|
||||||
|
Reference in New Issue
Block a user