strip
should be a function.
testString: assert(typeof strip == 'function');
- text: strip("abc")
should return a string.
testString: assert(typeof strip("abc") == 'string');
- text: strip("\ba\x00b\n\rc\fd\xc3")
should return "abcd"
.
testString: assert.equal(strip("\ba\x00b\n\rc\fd\xc3"), "abcd");
- text: strip("\u0000\n abc\u00E9def\u007F")
should return " abcdef"
.
testString: assert.equal(strip("\u0000\n abc\u00E9def\u007F"), " abcdef");
- text: strip("a\n\tb\u2102d\u2147f")
should return "abdf"
.
testString: assert.equal(strip("a\n\tb\u2102d\u2147f"), "abdf");
- text: strip("Français.")
should return "Franais."
.
testString: assert.equal(strip("Français."), "Franais.");
- text: strip("123\tabc\u0007DEF\u007F+-*/€æŧðłþ")
should return "123abcDEF+-*/"
.
testString: assert.equal(strip("123\tabc\u0007DEF\u007F+-*/€æŧðłþ"), "123abcDEF+-*/");
```