mirror of
				https://github.com/quitesimpleorg/hs9001.git
				synced 2025-11-04 01:19:29 +01:00 
			
		
		
		
	Compare commits
	
		
			2 Commits
		
	
	
		
			v0.4
			...
			6e4ed9a1cd
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					6e4ed9a1cd | ||
| 26ababc93e | 
@@ -12,10 +12,6 @@ type history struct {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (h *history) GetHistoryByPrefix(prefix string) (ph []string) {
 | 
			
		||||
	/* Hack for performance reasons */
 | 
			
		||||
	if len(prefix) < 2 {
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
	opts := searchopts{}
 | 
			
		||||
	opts.order = "DESC"
 | 
			
		||||
	cmdqry := prefix + "%"
 | 
			
		||||
@@ -31,10 +27,6 @@ func (h *history) GetHistoryByPrefix(prefix string) (ph []string) {
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
func (h *history) GetHistoryByPattern(pattern string) (ph []string, pos []int) {
 | 
			
		||||
	/* Hack for performance reasons */
 | 
			
		||||
	if len(pattern) < 2 {
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
	opts := searchopts{}
 | 
			
		||||
	opts.order = "DESC"
 | 
			
		||||
	cmdqry := "%" + pattern + "%"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user