]> git.kaiwu.me - njs.git/commit
Fixed String.prototype.replace() for '$0' replacement string.
authorAlexander Borisov <alexander.borisov@nginx.com>
Tue, 2 Jul 2019 15:14:47 +0000 (18:14 +0300)
committerAlexander Borisov <alexander.borisov@nginx.com>
Tue, 2 Jul 2019 15:14:47 +0000 (18:14 +0300)
commit1d842ceccf86bbeef6beadc1efb8287c4a4518fe
tree90dcc5d3f2089c6d9ceb1e4054b214ae68613cf9
parentdc9cabd9d3058e99550e26831b4f96d6c1b5633b
Fixed String.prototype.replace() for '$0' replacement string.

For example:
'0'.replace(/^/g, "$0")
njs/njs_string.c
njs/test/njs_unit_test.c