Skip to content

Commit

Permalink
Update src/DataObjects/WorkflowDefinition.php
Browse files Browse the repository at this point in the history
Co-Authored-By: Daniel Hensby <dhensby@users.noreply.github.com>
  • Loading branch information
shoosah and dhensby authored Apr 7, 2020
1 parent e20545d commit 468f939
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DataObjects/WorkflowDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ public function getDefaultWorkflowTitle()
$tmp = [];

foreach ($defs as $def) {
$parts = preg_split("#\s#", preg_quote($def), -1, PREG_SPLIT_NO_EMPTY);
$parts = preg_split("#\s#", preg_quote($def, '#'), -1, PREG_SPLIT_NO_EMPTY);
$lastPart = array_pop($parts);
$match = implode(' ', $parts);
// @todo do all this in one preg_match_all() call
Expand Down

0 comments on commit 468f939

Please sign in to comment.