Commit Graph

24 Commits (99b3750d10d01ecb82bf5fc96ae9df770b8906fd)

Author SHA1 Message Date
Kevin Wan 3a493cd6a6
chore: add more tests (#3006) 2 years ago
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
2 years ago
Kevin Wan 072db116c3
chore: refactor (#2875) 2 years ago
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
Kevin Wan 0a5a26385d
chore: add more tests (#2866)
* chore: add more tests

* chore: add more tests

* chore: fix test failure
2 years ago
hudahai 62e59837c6 fix: loop reset nextStart 2 years ago
hudahai 981d7dab13 feat: revert bytes.Buffer to strings.Builder 2 years ago
hudahai d9a732a273 fix: replace shoud replace the longest match 2 years ago
Kevin Wan 95a5f64493
feat: add stringx.ToCamelCase (#2622) 2 years ago
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
2 years ago
Kevin Wan 72ebbb9774
feat: update docker alpine package mirror (#1924)
* feat: update docker alpine package mirror

* chore: format code
3 years ago
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
3 years ago
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
3 years ago
Kevin Wan a91c3907a8
feat: rename module from tal-tech to zeromicro (#1413) 3 years ago
Kevin Wan c7f5aad83a
add stringx.FirstN with ellipsis (#916) 3 years ago
Kevin Wan f2612db4b1
add stringx.FirstN (#914) 3 years ago
Bo-Yi Wu 73906f996d
chore(format): change by gofumpt tool (#697)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
4 years ago
Bo-Yi Wu afd9ff889e
chore: update code format. (#628) 4 years ago
Kevin Wan 04b0f26182
fix golint issues in core/stringx (#516) 4 years ago
Kevin Wan 5e969cbef0
fix golint issues, else blocks (#457) 4 years ago
kevin 9e14820698 fix golint warnings 4 years ago
kevin 2ebb5b6b58 support customized mask char on trie 4 years ago
kevin 0a7e0cce77 update package reference 4 years ago
kevin 7e3a369a8f initial import 4 years ago