Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Commit

Permalink
fix: trim and case-insensitive match target
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmsibley committed Oct 10, 2017
1 parent d8dc0de commit 25636f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/portal/misc/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ define(['angular'], function(angular) {
.filter('targetToRel', function() {
return function(target) {
var result = '';
if (target === TARGET_BLANK) {
if (target &&
target.trim().toUpperCase() === TARGET_BLANK.toUpperCase()) {
result = REL_BLANK_FIX;
}
return result;
Expand Down

0 comments on commit 25636f4

Please sign in to comment.