mirror of
				https://github.com/pragma-/pbot.git
				synced 2025-11-04 00:27:23 +01:00 
			
		
		
		
	applets/unicode.pl: keep newlines for pasting; increase search limit
This commit is contained in:
		
							parent
							
								
									0236043fe9
								
							
						
					
					
						commit
						3340589207
					
				
							
								
								
									
										6
									
								
								applets/unicode.pl
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								applets/unicode.pl
									
									
									
									
										vendored
									
									
								
							@ -30,11 +30,9 @@ my $result;
 | 
			
		||||
if ($args =~ /^u\+/i) {
 | 
			
		||||
    $result = `unicode --color=off \Q$args\E`;
 | 
			
		||||
} elsif ($search) {
 | 
			
		||||
    $result = `unicode -r --color=off \Q$args\E --format 'U+{ordc:04X} {pchar} {name}\n'`;
 | 
			
		||||
    $result = `unicode -r --max=100 --color=off \Q$args\E --format 'U+{ordc:04X} {pchar} {name};\n'`;
 | 
			
		||||
} else {
 | 
			
		||||
    $result = `unicode -s --color=off \Q$args\E --format 'U+{ordc:04X} ({utf8}) {pchar} {name} Category: {category} ({category_desc}) {opt_unicode_block}{opt_unicode_block_desc}{mirrored_desc}{opt_combining}{combining_desc}{opt_decomp}{decomp_desc}'`;
 | 
			
		||||
    $result = `unicode -s --color=off \Q$args\E --format 'U+{ordc:04X} ({utf8}) {pchar} {name} Category: {category} ({category_desc}) {opt_unicode_block}{opt_unicode_block_desc}{mirrored_desc}{opt_combining}{combining_desc}{opt_decomp}{decomp_desc};\n'`;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
$result = join '; ', split /\n+/, $result;
 | 
			
		||||
 | 
			
		||||
print "$result\n";
 | 
			
		||||
 | 
			
		||||
@ -25,7 +25,7 @@ use PBot::Imports;
 | 
			
		||||
# These are set by the /misc/update_version script
 | 
			
		||||
use constant {
 | 
			
		||||
    BUILD_NAME     => "PBot",
 | 
			
		||||
    BUILD_REVISION => 4638,
 | 
			
		||||
    BUILD_REVISION => 4639,
 | 
			
		||||
    BUILD_DATE     => "2023-03-23",
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user