Commit 405b38b
committed
Changeset linking regex should not match empty repo
The regex now checks that the 1st char of the repository name is not
whitespace.
This avoids situations where a string like 'commit: c:repo:sha:' is not
matched properly because it is parsed as repo = ' c', and changeset id =
'repo'.
Also improve the PHPDoc for CHANGESET_LINKING_REGEX.
Fixes #1611 parent e638ff7 commit 405b38b
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
| 23 | + | |
22 | 24 | | |
23 | | - | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
0 commit comments