Skip to content

Commit 01f1cd9

Browse files
author
Dave Thompson
committed
Fixed artifact link detection and added link to Readme
1 parent ea7aac9 commit 01f1cd9

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

App.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -1248,9 +1248,9 @@
12481248
* Artifact type prefix regexes to match in commit messages.
12491249
*/
12501250
artifactRegexes: [
1251-
/(\s+)(DE\d+)/,
1252-
/(\s+)(US\d+)/,
1253-
/(\s+)(TA\d+)/
1251+
/(DE\d+)/,
1252+
/(US\d+)/,
1253+
/(TA\d+)/
12541254
],
12551255

12561256
columnCfgs: [{
@@ -1261,7 +1261,7 @@
12611261
renderer: function(value) {
12621262
value = Ext.String.htmlEncode(value);
12631263
Ext.each(this.artifactRegexes, function(artifactRegex) {
1264-
value = value.replace(artifactRegex, '<a href="#" class="artifact-link">$1$2</a>');
1264+
value = value.replace(artifactRegex, '<a href="#" class="artifact-link">$1</a>');
12651265
});
12661266
return value;
12671267
}

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
RallyGithub is an integration between Rally and Github, written using the Rally App SDK 2.0.
44

5+
[View a screencast demo of the app](http://www.screencast.com/t/Nr9vXXvCz)
6+
57
## License
68

79
RallyGithub is released under the MIT license. See the file LICENSE for the full text.

changeset/ui/ChangesetGrid.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ Ext.define('changeset.ui.ChangesetGrid', {
1414
* Artifact type prefix regexes to match in commit messages.
1515
*/
1616
artifactRegexes: [
17-
/(\s+)(DE\d+)/,
18-
/(\s+)(US\d+)/,
19-
/(\s+)(TA\d+)/
17+
/(DE\d+)/,
18+
/(US\d+)/,
19+
/(TA\d+)/
2020
],
2121

2222
columnCfgs: [{
@@ -27,7 +27,7 @@ Ext.define('changeset.ui.ChangesetGrid', {
2727
renderer: function(value) {
2828
value = Ext.String.htmlEncode(value);
2929
Ext.each(this.artifactRegexes, function(artifactRegex) {
30-
value = value.replace(artifactRegex, '<a href="#" class="artifact-link">$1$2</a>');
30+
value = value.replace(artifactRegex, '<a href="#" class="artifact-link">$1</a>');
3131
});
3232
return value;
3333
}

0 commit comments

Comments
 (0)