Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(notification): Avoid repo names include keyword #426

Merged
merged 1 commit into from
Oct 4, 2017

Conversation

chinesedfan
Copy link
Member

The original replacement is not very safe, i.e,

'https://github.com/schacon/git-pulls/pulls/64'.replace('pulls', 'issues')
-> "https://github.com/schacon/git-issues/pulls/64"

'https://github.com/schacon/git-pulls/pulls/64'.replace(/pulls\/(\d+)$/, 'issues/$1')
-> "https://github.com/schacon/git-pulls/issues/64"

Copy link
Member

@lex111 lex111 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch 👍

@alejandronanez alejandronanez merged commit 8a724f9 into gitpoint:master Oct 4, 2017
@chinesedfan chinesedfan deleted the fix_replace branch October 5, 2017 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants