mirror of
				https://github.com/arkenfox/user.js.git
				synced 2025-11-04 07:45:26 +01:00 
			
		
		
		
	v3.1 - (mostly) fix diff functionality
see #1188 this should fix the issue that "All prefs after a multi-line comment declaration, on a single line, are deleted with the remove_comments function from the updater."
This commit is contained in:
		@@ -2,7 +2,7 @@
 | 
			
		||||
 | 
			
		||||
## arkenfox user.js updater for macOS and Linux
 | 
			
		||||
 | 
			
		||||
## version: 3.0
 | 
			
		||||
## version: 3.1
 | 
			
		||||
## Author: Pat Johnson (@overdodactyl)
 | 
			
		||||
## Additional contributors: @earthlng, @ema-pe, @claustromaniac
 | 
			
		||||
 | 
			
		||||
@@ -236,7 +236,7 @@ add_override () {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
remove_comments () { # expects 2 arguments: from-file and to-file
 | 
			
		||||
  sed -e 's/^[[:space:]]*\/\/.*$//' -e '/^\/\*/,/\*\//d' -e '/^[[:space:]]*$/d' -e 's/);[[:space:]]*\/\/.*/);/' "$1" > "$2"
 | 
			
		||||
  sed -e 's/^[[:space:]]*\/\/.*$//' -e '/^\/\*.\+\*\/[[:space:]]*$/d' -e '/^\/\*/,/\*\//d' -e '/^[[:space:]]*$/d' -e 's/);[[:space:]]*\/\/.*/);/' "$1" > "$2"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# Applies latest version of user.js and any custom overrides
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user