]> git.kaiwu.me - njs.git/commit
Aligned StringIndexOf() implementation with the spec.
authorDmitry Volyntsev <xeioex@nginx.com>
Wed, 22 May 2024 06:41:10 +0000 (23:41 -0700)
committerDmitry Volyntsev <xeioex@nginx.com>
Wed, 22 May 2024 06:41:10 +0000 (23:41 -0700)
commit4bb4c5eaebe29732edd84db44f9aefa666d9081b
tree483eb263109a7c88294a8d21f1eddb1e695a41c4
parentc4a4e19cbeb6ff32f802ea9db42152f5622fbc96
Aligned StringIndexOf() implementation with the spec.

When searchValue is empty the function should return early
when fromIndex <= len is also true.
src/njs_string.c