mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 13:29:10 +08:00 
			
		
		
		
	Sort inputs and remove whitespaces after exclamation at the beginning of lines
This commit is contained in:
		@@ -61,8 +61,9 @@ export function getInputAsArray(
 | 
			
		||||
    return core
 | 
			
		||||
        .getInput(name, options)
 | 
			
		||||
        .split("\n")
 | 
			
		||||
        .map(s => s.trim())
 | 
			
		||||
        .filter(x => x !== "");
 | 
			
		||||
        .map(s => s.replace(/^\!\s+/, '!').trim())
 | 
			
		||||
        .filter(x => x !== "")
 | 
			
		||||
        .sort();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export function getInputAsInt(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user