Skip to content

Commit

Permalink
Merge pull request #80 from ValentinBrclz/devel
Browse files Browse the repository at this point in the history
GetArticleCategories fix
  • Loading branch information
macbre committed Nov 7, 2015
2 parents 0ed9e16 + b2b5dd7 commit ae5377f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
})
);
});
Expand Down

0 comments on commit ae5377f

Please sign in to comment.