Skip to content

Node.js based forum software built for the modern web

fix: show more lines

Barış Soner Uşaklıba2e1c4c7e05
diff --git a/public/src/utils.js b/public/src/utils.js
index 2b86451bde..68cdeb2882 100644
--- a/public/src/utils.js
+++ b/public/src/utils.js
@@ -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 {