Commit Graph

27 Commits

Author SHA1 Message Date
Kevin Wan
45be48a4ee
chore: coding style (#3959) 2024-03-02 22:45:24 +08:00
Kevin Wan
07e3e14c0e
chore: remove go build version in fuzz test (#3678) 2023-10-28 20:53:03 +08:00
Rene Leonhardt
34c5f6616c
chore: upgrade go to 1.19 (#3677) 2023-10-28 12:12:04 +00:00
Kevin Wan
3a493cd6a6
chore: add more tests (#3006) 2023-03-10 17:36:39 +08:00
Kevin Wan
cddf3875cf
refactor: simplify stringx.Replacer, and avoid potential infinite loops (#2877)
* simplify replace

* backup

* refactor: simplify stringx.Replacer

* chore: add comments and const

* chore: add more tests

* chore: rename variable
2023-02-14 10:18:02 +08:00
Kevin Wan
072db116c3
chore: refactor (#2875) 2023-02-12 22:20:36 +08:00
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>
2023-02-12 21:04:35 +08:00
Kevin Wan
0a5a26385d
chore: add more tests (#2866)
* chore: add more tests

* chore: add more tests

* chore: fix test failure
2023-02-11 14:21:39 +08:00
hudahai
62e59837c6 fix: loop reset nextStart 2023-02-10 04:26:50 +00:00
hudahai
981d7dab13 feat: revert bytes.Buffer to strings.Builder 2023-02-10 04:26:50 +00:00
hudahai
d9a732a273 fix: replace shoud replace the longest match 2023-02-10 04:26:50 +00:00
Kevin Wan
95a5f64493
feat: add stringx.ToCamelCase (#2622) 2022-11-20 17:41:39 +08:00
Kevin Wan
69068cdaf0
feat: support env tag in config (#2577)
* feat: support env tag in config

* chore: add more tests

* chore: add more tests, add stringx.Join

* fix: test fail

* chore: remove print code

* chore: rename variable
2022-11-11 23:17:09 +08:00
Kevin Wan
72ebbb9774
feat: update docker alpine package mirror (#1924)
* feat: update docker alpine package mirror

* chore: format code
2022-05-23 09:13:21 +08:00
Kevin Wan
b3e7d2901f
Feature/trie ac automation (#1479)
* fix: trie ac automation issues

* fix: trie ac automation issues

* fix: trie ac automation issues

* fix: trie ac automation issues
2022-01-25 11:14:56 +08:00
Kevin Wan
f1102fb262
chore: optimize string search with Aho–Corasick algorithm (#1476)
* chore: optimize string search with Aho–Corasick algorithm

* chore: optimize keywords replacer

* fix: replacer bugs

* chore: reorder members
2022-01-23 23:37:02 +08:00
Kevin Wan
a91c3907a8
feat: rename module from tal-tech to zeromicro (#1413) 2022-01-04 15:51:32 +08:00
Kevin Wan
c7f5aad83a
add stringx.FirstN with ellipsis (#916) 2021-08-16 12:08:33 +08:00
Kevin Wan
f2612db4b1
add stringx.FirstN (#914) 2021-08-15 23:02:48 +08:00
Bo-Yi Wu
73906f996d
chore(format): change by gofumpt tool (#697)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-05-18 14:43:09 +08:00
Bo-Yi Wu
afd9ff889e
chore: update code format. (#628) 2021-04-15 19:49:17 +08:00
Kevin Wan
04b0f26182
fix golint issues in core/stringx (#516) 2021-02-24 16:09:07 +08:00
Kevin Wan
5e969cbef0
fix golint issues, else blocks (#457) 2021-02-09 13:50:21 +08:00
kevin
9e14820698 fix golint warnings 2020-08-19 16:00:55 +08:00
kevin
2ebb5b6b58 support customized mask char on trie 2020-08-19 14:54:59 +08:00
kevin
0a7e0cce77 update package reference 2020-08-08 16:40:10 +08:00
kevin
7e3a369a8f initial import 2020-07-26 17:09:05 +08:00