mirror of
				https://github.com/folke/lazy.nvim.git
				synced 2025-10-31 14:31:04 +00:00 
			
		
		
		
	feat: match any revision
This commit is contained in:
		
					parent
					
						
							
								aea6fdb84b
							
						
					
				
			
			
				commit
				
					
						7e18ced2e6
					
				
			
		
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -249,9 +249,10 @@ function M.find_rockspec(plugin) | ||||||
|   local rockspec_file ---@type string? |   local rockspec_file ---@type string? | ||||||
| 
 | 
 | ||||||
|   local check_file = function(path, name) |   local check_file = function(path, name) | ||||||
|  |     -- match package-(scm|git|dev)-[REV].rockspec | ||||||
|     for _, suffix in ipairs({ "scm", "git", "dev" }) do |     for _, suffix in ipairs({ "scm", "git", "dev" }) do | ||||||
|       suffix = suffix .. "-1.rockspec" |       pattern = suffix .. "%-%d+%.rockspec$" | ||||||
|       if name:sub(-#suffix) == suffix then |       if name:find(pattern) then | ||||||
|         return path |         return path | ||||||
|       end |       end | ||||||
|     end |     end | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue