Skip to content

Commit

Permalink
Bug 1301906 - Make sure linkifyClassifications filter gives proper re…
Browse files Browse the repository at this point in the history
…sults (#1843) r=camd
  • Loading branch information
KWierso committed Sep 12, 2016
1 parent d65979d commit ff10e7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/ui/unit/filtersSpec.js
Expand Up @@ -211,7 +211,7 @@ describe('linkifyClassifications filter', function() {
it('linkifies classifications', function() {
var linkifyClassifications = $filter('linkifyClassifications');
expect(linkifyClassifications('1234567890ab', 'mozilla-central'))
.toEqual('<a href="https://hg.mozilla.org/mozilla/central/rev/1234567890ab">1234567890ab</a>');
.toEqual("<a href='https://hg.mozilla.org/mozilla/central/rev/1234567890ab'>1234567890ab</a>");
});
});

Expand Down
2 changes: 1 addition & 1 deletion ui/js/filters.js
Expand Up @@ -33,7 +33,7 @@ treeherder.filter('linkifyClassifications', ['ThRepositoryModel', function(ThRep
var repo = ThRepositoryModel.getRepo(projectName);

if(repo.dvcs_type === "hg" && isSHA(str)) {
var hg_url = '<a href="' + repo.url + '/rev/' + str + '">' + str + '</a>';
var hg_url = "<a href=\'" + repo.url + "/rev/" + str + "\'>" + str + "</a>";
str = hg_url;
}

Expand Down

0 comments on commit ff10e7b

Please sign in to comment.