Skip to content

Commit

Permalink
fix: show more lines
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Oct 13, 2020
1 parent 7beaf49 commit ba2e1c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/src/utils.js
Expand Up @@ -343,7 +343,7 @@

// http://dense13.com/blog/2009/05/03/converting-string-to-slug-javascript/
slugify: function (str, preserveCase) {
var stack = new Error('utils.slugify').stack.split('\n')[1];
var stack = new Error('utils.slugify').stack.split('\n').slice(0, 4).join('\n');
if (typeof module === 'object' && module.exports) {
console.warn('[deprecated] utils.slugify deprecated. Use `require("slugify")` instead.\n' + stack);
} else {
Expand Down

0 comments on commit ba2e1c4

Please sign in to comment.