Skip to content

Commit

Permalink
Escaped minus in reg exp
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Legierski committed Apr 15, 2015
1 parent 4f70dae commit 1fe534b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GatherContent/Htmldiff/Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function prepareHtmlOutput($diff)

foreach ($lines as $line) {

$result = preg_match('/([+-\s])(<.*>)(.*)/', $line, $lineParts);
$result = preg_match('/([+\-\s])(<.*>)(.*)/', $line, $lineParts);

if ($result == 1) {

Expand Down

0 comments on commit 1fe534b

Please sign in to comment.