Feature #37099 ยป 0001-Added-more-regexps-to-parse-more-SCM-messages.patch
app/helpers/application_helper.rb | ||
---|---|---|
1277 | 1277 |
LINKS_RE = |
1278 | 1278 |
%r{ |
1279 | 1279 |
<a( [^>]+?)?>(?<tag_content>.*?)</a>| |
1280 |
(?<leading>[\s\(,\-\[\>]|^) |
|
1280 |
(?<leading>[\s\(,\-\[\>\/]|^)
|
|
1281 | 1281 |
(?<esc>!)? |
1282 | 1282 |
(?<project_prefix>(?<project_identifier>[a-z0-9\-_]+):)? |
1283 | 1283 |
(?<prefix>attachment|document|version|forum|news|message|project|commit|source|export|user)? |
... | ... | |
1307 | 1307 |
) |
1308 | 1308 |
(?= |
1309 | 1309 |
(?=[[:punct:]][^A-Za-z0-9_/])| |
1310 |
\-| |
|
1311 |
_| |
|
1310 | 1312 |
,| |
1311 | 1313 |
\s| |
1312 | 1314 |
\]| |
app/models/changeset.rb | ||
---|---|---|
135 | 135 |
referenced_issues = [] |
136 | 136 |
regexp = |
137 | 137 |
%r{ |
138 |
([\s\(\[,-]|^)((#{kw_regexp})[\s:]+)? |
|
138 |
([\s\(\[,-\/]|^)((#{kw_regexp})[\s:]+)?
|
|
139 | 139 |
(\#\d+(\s+@#{TIMELOG_RE})?([\s,;&]+\#\d+(\s+@#{TIMELOG_RE})?)*) |
140 | 140 |
(?=[[:punct:]]|\s|<|$) |
141 | 141 |
}xi |