Commit 2cfe2618 authored by Vincent Mazenod's avatar Vincent Mazenod
Browse files

fix lost column name with '-' and consecutive constraint

parent 01cd20b5
......@@ -51,7 +51,7 @@ class ConstraintMiningConsecutive
$patterns = array_map(
function ($c) {
$regexp = preg_replace('/(.+)/','/${1}/', $c);
$regexp = str_replace("-", "\-", $regexp);
$regexp = str_replace("-", ".", $regexp);
return $regexp;
},
$job->getColumns()
......@@ -74,7 +74,7 @@ class ConstraintMiningConsecutive
foreach($lines as $k => $line)
{
$results[$k] = Array();
preg_match_all('/(\w+=[\+|\-])/', $line, $columns);
preg_match_all('/([\w\.]+=[\+|\-])/', $line, $columns);
$results[$k]['columns'] = array_map(
function ($c) use ($patterns, $replacements) {
$regexp = preg_replace($patterns, $replacements, $c);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment