Search in Code mistmach on hyphen or parts #9661

Open
opened 2025-11-02 08:45:51 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @SonGokussj4 on GitHub (Oct 6, 2022).

Description

Not sure if a bug, but I've mistakenly pushed an ApiKey to the repo. When I decided to search if this was the only occurrence, well, this happens:

# FILE: get-events.py
...
8    headers = {
9        'ApiKey': 'd23d49da-7284-4ac3-XXXX-YYYYYYYYYYYY'
10   }
...
  • Fuzzy search: d23d49da ... success
  • Fuzzy search: d23d49da-7284 ... success
  • Fuzzy search: d23d49da-7284-4ac3-XXXX-YYYYYYYYYYYY ... success
  • Fuzzy search: d23d49 ... not found
  • Fuzzy search: d23d49da-72 ... not found
  • Fuzzy search: 7284 ... success
  • Fuzzy search: 728 ... not found
  • Fuzzy search: 9da-728 ... not found
  • Fuzzy search: 7284-4ac3 ... success
  • Match search: d23d49da ... success
  • Match search: d23d49da-7284 ... not found
  • Match search: d23d49da-7284-4ac3-XXXX-YYYYYYYYYYYY ... not found
  • Match search: d23d49 ... success
  • Match search: d23d49da-72 ... not found
  • Match search: 7284 ... success
  • Match search: 728 ... success
  • Match search: 9da-728 ... not found
  • Match search: 7284-4ac3 ... not found

Can't reproduce on try.gitea.io, because there is no Code search

Gitea Version

1.16.7

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Docker

Database

PostgreSQL

Originally created by @SonGokussj4 on GitHub (Oct 6, 2022). ### Description Not sure if a bug, but I've mistakenly pushed an ApiKey to the repo. When I decided to search if this was the only occurrence, well, this happens: ``` # FILE: get-events.py ... 8 headers = { 9 'ApiKey': 'd23d49da-7284-4ac3-XXXX-YYYYYYYYYYYY' 10 } ... ``` ### Fuzzy search - *Fuzzy search*: `d23d49da` ... success - *Fuzzy search*: `d23d49da-7284` ... success - *Fuzzy search*: `d23d49da-7284-4ac3-XXXX-YYYYYYYYYYYY` ... success - *Fuzzy search*: `d23d49` ... not found - *Fuzzy search*: `d23d49da-72` ... not found - *Fuzzy search*: `7284` ... success - *Fuzzy search*: `728` ... not found - *Fuzzy search*: `9da-728` ... not found - *Fuzzy search*: `7284-4ac3` ... success ### Match search - *Match search*: `d23d49da` ... success - *Match search*: `d23d49da-7284` ... not found - *Match search*: `d23d49da-7284-4ac3-XXXX-YYYYYYYYYYYY` ... not found - *Match search*: `d23d49` ... success - *Match search*: `d23d49da-72` ... not found - *Match search*: `7284` ... success - *Match search*: `728` ... success - *Match search*: `9da-728` ... not found - *Match search*: `7284-4ac3` ... not found > Can't reproduce on try.gitea.io, because there is no Code search ### Gitea Version 1.16.7 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? Docker ### Database PostgreSQL
GiteaMirror added the type/bug label 2025-11-02 08:45:51 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9661