fix: show more lines

v1.18.x
Barış Soner Uşaklı 4 years ago
parent 7beaf49028
commit ba2e1c4c7e

@ -343,7 +343,7 @@
// http://dense13.com/blog/2009/05/03/converting-string-to-slug-javascript/ // http://dense13.com/blog/2009/05/03/converting-string-to-slug-javascript/
slugify: function (str, preserveCase) { 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) { if (typeof module === 'object' && module.exports) {
console.warn('[deprecated] utils.slugify deprecated. Use `require("slugify")` instead.\n' + stack); console.warn('[deprecated] utils.slugify deprecated. Use `require("slugify")` instead.\n' + stack);
} else { } else {

Loading…
Cancel
Save