]> git.kaiwu.me - njs.git/commit
Improved String.prototype.replace().
authorAlexander Borisov <alexander.borisov@nginx.com>
Tue, 14 May 2019 10:00:44 +0000 (13:00 +0300)
committerAlexander Borisov <alexander.borisov@nginx.com>
Tue, 14 May 2019 10:00:44 +0000 (13:00 +0300)
commitc34496c181469560390a2f5d2d96e07369e47117
treec7014ea1c9e302b2a5f2d8812cc16216ad750435
parenta5a519f8cc99b8e285d4e6b4a78cc0de4bf3ff52
Improved String.prototype.replace().

If replace value is a function and the function return non string
value, then convert returned value to string.

This closes #61 issue on GitHub.
njs/njs_string.c
njs/test/njs_unit_test.c