mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: show more lines
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user