mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Add option to disable ambiguous unicode characters detection (#28454)
* Close #24483 * Close #28123 * Close #23682 * Close #23149 (maybe more)
This commit is contained in:
		@@ -6,6 +6,7 @@ package code
 | 
			
		||||
import (
 | 
			
		||||
	"bytes"
 | 
			
		||||
	"context"
 | 
			
		||||
	"html/template"
 | 
			
		||||
	"strings"
 | 
			
		||||
 | 
			
		||||
	"code.gitea.io/gitea/modules/highlight"
 | 
			
		||||
@@ -22,7 +23,7 @@ type Result struct {
 | 
			
		||||
	Language       string
 | 
			
		||||
	Color          string
 | 
			
		||||
	LineNumbers    []int
 | 
			
		||||
	FormattedLines string
 | 
			
		||||
	FormattedLines template.HTML
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type SearchResultLanguages = internal.SearchResultLanguages
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user