cleanString

  1. string cleanString(string value)
    @safe nothrow
    string
    cleanString
    (
    string value
    )
  2. string[] cleanString(string[] pieces)

Examples

it should return an empty string when the input is an empty string

"".cleanString.should.equal("");

it should return the input value when it has one char

"'".cleanString.should.equal("'");

it should remove the " from start and end of the string

`""`.cleanString.should.equal(``);

it should remove the ' from start and end of the string

`''`.cleanString.should.equal(``);

Meta