Skip to content

Commit f4b67d7

Browse files
committed
Merge branch 'master-1.3.x'
2 parents 84e8452 + 3dbec81 commit f4b67d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Source.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class SourcePlugin extends MantisSourceBase {
2424
* <rev> = changeset revision ID (e.g. SVN rev number, GIT SHA, etc.)
2525
* The match is not case-sensitive.
2626
*/
27-
const CHANGESET_LINKING_REGEX = '/(?:([cdsvp]?):([^:\s][^:\n\t]*):([^:\s]+):)/i';
27+
const CHANGESET_LINKING_REGEX = '/(?:(?<=^|\s)([cdsvp]?):([^:\s][^:\n\t]*):([^:\s]+):)/i';
2828

2929
function register() {
3030
$this->name = plugin_lang_get( 'title' );

0 commit comments

Comments
 (0)