���Root Mod By V1rus_Alfa
User / IP
:
216.73.216.158
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
/
speakingurl
/
test
/
Viewing: test-custom.js
/* global describe,it */ var getSlug = require('../lib/speakingurl'); describe('getSlug with custom replacement', function () { 'use strict'; it('should be transliterated', function (done) { getSlug('буу', { lang: false, custom: { 'б': 'б', 'у': 'у' } }) .should.eql('буу'); getSlug('[nodejs]', { custom: { '[': '[', ']': ']' } }) .should.eql('[nodejs]'); getSlug('[Äpfel]', { custom: { '[': '[', ']': ']' } }) .should.eql('[aepfel]'); getSlug('[Äpfel]', { lang: false, custom: { '[': '[', ']': ']' } }) .should.eql('[aepfel]'); done(); }); it('should be extended with allowed chars', function (done) { getSlug('буу', { custom: ['б', 'у'] }) .should.eql('буу'); getSlug('[Knöpfe]', { custom: ['[', ']'] }) .should.eql('[knoepfe]'); getSlug('[Knöpfe & Ösen]', { custom: ['[', ']'] }) .should.eql('[knoepfe-and-oesen]'); getSlug('[Knöpfe & Ösen]', { custom: ['[', ']'], lang: 'de' }) .should.eql('[knoepfe-und-oesen]'); getSlug('[Knöpfe]', { maintainCase: true, custom: ['[', ']'] }) .should.eql('[Knoepfe]'); getSlug('[Knöpfe haben Löcher]', { titleCase: true, custom: ['[', ']'] }) .should.eql('[Knoepfe-Haben-Loecher]'); getSlug('[knöpfe haben runde löcher]', { titleCase: ['haben', 'runde'], custom: ['[', ']'] }) .should.eql('[Knoepfe-haben-runde-Loecher]'); getSlug('[knöpfe haben runde löcher]', { titleCase: ['haben', 'runde'], maintainCase: true, custom: ['[', ']'] }) .should.eql('[Knoepfe-haben-runde-Loecher]'); done(); }); });
Coded With 💗 by
0x6ick Mod By V1rus_Alfa