diff --git a/readme.md b/readme.md index c6ac7d4..cefb33d 100644 --- a/readme.md +++ b/readme.md @@ -48,10 +48,11 @@ tf = textr({ locale: 'ru'}) .use(ellipses) .use(spaces) .use(quotes) + .use(String.prototype.trim) ; // then just send some text to the transformer -tf('Hello "world"...'); // Hello «world»… +tf('Hello "world"...\n'); // Hello «world»… ``` ## API @@ -101,6 +102,9 @@ function plugin(text, options) { } ``` +To support `String.prototype` methods as transformation functions, `this` value +is equal to the `text`. + ## License