From ebfc538a46c938534337420e2fa206f33287c5bf Mon Sep 17 00:00:00 2001 From: Shuvalov Anton Date: Sat, 18 Apr 2015 19:19:58 +0300 Subject: [PATCH] update the docs --- readme.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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