21 Commits

Author SHA1 Message Date
ferhat elmas 670aa32325 refactor(lint): add new linters and fix their issues
* gocritic
* misspell
* modernize (aside, bumping go would be nice)
* testifylint
* unconvert
* unparam
* whitespace

related to #1432

Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
2025-12-05 10:45:55 +08:00
LinkinStars 5e705a124b refactor(lint): improve error handling and code consistency across multiple files 2025-12-01 12:27:25 +08:00
ferhat elmas ce053ccfa6 fix: multi byte run boundary for cut long title
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
2025-11-25 17:58:11 +08:00
ferhat elmas a15dd41550 refactor(internal): compile regex once while clearing text
Regex and Replacer can be reused.
No need to recreate for each invocation.

Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
2025-11-24 10:32:47 +08:00
LinkinStars 0618947350 refactor(name): rename incubator-answer 2025-01-07 10:39:23 +08:00
LinkinStars 6817fafcca refactor(gomod): replace pinyin dependency 2024-09-26 16:25:40 +08:00
LinkinStars 0d6ea89ad3 refactor(gomod): upgrade golang and dependence version 2024-09-23 15:00:34 +08:00
LinkinStars abe0680641 Release/1.3.0 (#876)
Co-authored-by: shuai <lishuailing@sifou.com>
Co-authored-by: Han Gao <dhangao@hotmail.com>
Co-authored-by: wzy <770954908@qq.com>
Co-authored-by: zahash <zahash.z@gmail.com>
Co-authored-by: Hosein Beigi <hbsciw@gmail.com>
Co-authored-by: kumfo <kumfo@sifou.com>
Co-authored-by: sy-records <52o@qq52o.cn>
Co-authored-by: 而立 <cuihengqing@cai-inc.com>
Co-authored-by: foxzero-007 <chq2549603631@gmail.com>
Co-authored-by: easy <58644520+foxzero-007@users.noreply.github.com>
Co-authored-by: robin <robin@rnode.me>
Co-authored-by: Akhil <surapuramakhil@gmail.com>
Co-authored-by: Shaobiao Lin <whalevocal@gmail.com>
2024-03-22 17:25:46 +08:00
LinkinStars a458f3409c rename all old answerdev/answer link to apache/incubator-answer (#603)
Co-authored-by: shuai <lishuailing@sifou.com>
2023-11-01 14:48:35 +08:00
tison 3d2187d849 chore: add license headers
Signed-off-by: tison <wander4096@gmail.com>
2023-10-26 11:11:23 +08:00
LinkinStars 5d28954e4c feat(question): change create question title function 2023-08-18 18:15:44 +08:00
杨光富 54a2a6256d Merge branch 'fix/excerpt' into 'test'
fix(htmltext): FetchExcerpt if actual string length <= expected string length, no need trim marker

See merge request opensource/answer!390
2022-12-28 10:15:36 +00:00
LinkinStar 72f512553a refactor(code): replace outdated function 2022-12-28 17:20:55 +08:00
kumfo 83a78737c3 fix(htmltext): FetchExcerpt if actual string length <= expected string length, no need trim marker 2022-12-27 10:46:34 +08:00
aichy126 58acb3229e update favicon.ico 2022-12-18 00:33:17 +08:00
aichy126 fad8acbe16 fix urltitle 2022-12-09 10:43:54 +08:00
aichy126 8e0607470b update Canonical 2022-12-02 16:42:40 +08:00
kumfo 42f3154233 fix: fetch excerpt, if contain link, show link name 2022-11-10 11:23:07 +08:00
kumfo c7ee44d33c feat: get text excerpt 2022-11-07 14:32:17 +08:00
kumfo ad8cb70d49 feat: get text excerpt 2022-11-07 14:29:49 +08:00
kumfo 8f567e0abd feat: get text excerpt 2022-11-07 14:27:54 +08:00