dahaihu
|
cacd5dc91a
|
fix Replacer suffix match, and add test case (#2867)
* fix: replace shoud replace the longest match
* feat: revert bytes.Buffer to strings.Builder
* fix: loop reset nextStart
* feat: add node longest match test
* feat: add replacer suffix match test case
* feat: multiple match
* fix: partial match ends
* fix: replace look back upon error
* feat: rm unnecessary branch
---------
Co-authored-by: hudahai <hscxrzs@gmail.com>
Co-authored-by: hushichang <hushichang@sensetime.com>
|
2 years ago |