Skip to content

Commit

Permalink
fix(notification): Avoid repo names include keyword (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
chinesedfan authored and alejandronanez committed Oct 4, 2017
1 parent 5113294 commit 8a724f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/notifications/screens/notifications.screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ class Notifications extends Component {

markAsRead(notification.id);
navigation.navigate('Issue', {
issueURL: notification.subject.url.replace('pulls', 'issues'),
issueURL: notification.subject.url.replace(/pulls\/(\d+)$/, 'issues/$1'),
isPR: notification.subject.type === 'PullRequest',
language: this.props.language,
});
Expand Down

0 comments on commit 8a724f9

Please sign in to comment.