mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 04:22:25 -05:00 
			
		
		
		
	[chore] Update all but bun libraries (#526)
* update all but bun libraries Signed-off-by: kim <grufwub@gmail.com> * remove my personal build script changes Signed-off-by: kim <grufwub@gmail.com>
This commit is contained in:
		
					parent
					
						
							
								e06bf9cc9a
							
						
					
				
			
			
				commit
				
					
						b56dae8120
					
				
			
		
					 350 changed files with 305366 additions and 5943 deletions
				
			
		
							
								
								
									
										21
									
								
								vendor/github.com/tdewolff/parse/v2/util.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										21
									
								
								vendor/github.com/tdewolff/parse/v2/util.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -397,8 +397,9 @@ var URLEncodingTable = [256]bool{ | |||
| } | ||||
| 
 | ||||
| // DataURIEncodingTable is a charmap for which characters need escaping in the Data URI encoding scheme | ||||
| // Escape only non-printable characters, unicode and %, #, &. IE11 additionally requires encoding of | ||||
| // \, [, ], ", <, >, `, {, }, |, ^ which is not required by Chrome, Firefox, Opera, Edge, Safari, Yandex | ||||
| // Escape only non-printable characters, unicode and %, #, &. | ||||
| // IE11 additionally requires encoding of \, [, ], ", <, >, `, {, }, |, ^ which is not required by Chrome, Firefox, Opera, Edge, Safari, Yandex | ||||
| // To pass the HTML validator, restricted URL characters must be escaped: non-printable characters, space, <, >, #, %, " | ||||
| var DataURIEncodingTable = [256]bool{ | ||||
| 	// ASCII | ||||
| 	true, true, true, true, true, true, true, true, | ||||
|  | @ -406,7 +407,7 @@ var DataURIEncodingTable = [256]bool{ | |||
| 	true, true, true, true, true, true, true, true, | ||||
| 	true, true, true, true, true, true, true, true, | ||||
| 
 | ||||
| 	false, false, true, true, false, true, true, false, // ", #, %, & | ||||
| 	true, false, true, true, false, true, true, false, // space, ", #, %, & | ||||
| 	false, false, false, false, false, false, false, false, | ||||
| 	false, false, false, false, false, false, false, false, | ||||
| 	false, false, false, false, true, false, true, false, // <, > | ||||
|  | @ -448,15 +449,11 @@ func EncodeURL(b []byte, table [256]bool) []byte { | |||
| 	for i := 0; i < len(b); i++ { | ||||
| 		c := b[i] | ||||
| 		if table[c] { | ||||
| 			if c == ' ' { | ||||
| 				b[i] = '+' | ||||
| 			} else { | ||||
| 				b = append(b, 0, 0) | ||||
| 				copy(b[i+3:], b[i+1:]) | ||||
| 				b[i+0] = '%' | ||||
| 				b[i+1] = "0123456789ABCDEF"[c>>4] | ||||
| 				b[i+2] = "0123456789ABCDEF"[c&15] | ||||
| 			} | ||||
| 			b = append(b, 0, 0) | ||||
| 			copy(b[i+3:], b[i+1:]) | ||||
| 			b[i+0] = '%' | ||||
| 			b[i+1] = "0123456789ABCDEF"[c>>4] | ||||
| 			b[i+2] = "0123456789ABCDEF"[c&15] | ||||
| 		} | ||||
| 	} | ||||
| 	return b | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue