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

GetArticleCategories fix #80

Merged
merged 2 commits into from Nov 7, 2015
Merged

GetArticleCategories fix #80

merged 2 commits into from Nov 7, 2015

Conversation

ValentinBrclz
Copy link
Contributor

With this approach, only the part before the first ":" gets removed.

It was an issue on fr.wiki, since certain categories have several ":"

Catégorie:Wikipédia:Phénix is one of the many examples.

@ValentinBrclz ValentinBrclz changed the title devel GetArticleCategories fix Nov 7, 2015
@@ -378,7 +378,7 @@ module.exports = (function() {
null,
(page.categories || []).map(function(cat) {
// { ns: 14, title: 'Kategoria:XX wiek' }
return cat.title.split(':')[1];
return cat.title.substring(cat.title.indexOf(":")+1);
Copy link
Owner

Choose a reason for hiding this comment

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

Please use tabs instead of spaces.

@macbre
Copy link
Owner

macbre commented Nov 7, 2015

Thanks for the fix.

Please address the minor comment above and we're ready to merge.

@macbre macbre added the bug label Nov 7, 2015
@ValentinBrclz
Copy link
Contributor Author

Sorry for that, should be fine like that

macbre added a commit that referenced this pull request Nov 7, 2015
@macbre macbre merged commit ae5377f into macbre:devel Nov 7, 2015
@macbre macbre modified the milestone: v0.8 Nov 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants