… | |
… | |
53 | |
53 | |
54 | for ($text) { |
54 | for ($text) { |
55 | $add_button->("rot13" => sub { y/A-Za-z/N-ZA-Mn-za-m/ }); |
55 | $add_button->("rot13" => sub { y/A-Za-z/N-ZA-Mn-za-m/ }); |
56 | |
56 | |
57 | urxvt::safe |
57 | urxvt::safe |
58 | and $add_button->("eval perl expression" => sub { $_ = eval urxvt::untaint $_ }); |
58 | and $add_button->("eval perl expression" => sub { no warnings; $_ = eval urxvt::untaint $_ }); |
59 | |
59 | |
60 | /^(\S+):(\d+):?$/ |
60 | /^(\S+):(\d+):?$/ |
61 | and $add_button->("vi-commands to load '$1'" => sub { s/^(\S+):(\d+):?$/\x1b:e $1\x0d:$2\x0d/ }); |
61 | and $add_button->("vi-commands to load '$1'" => sub { s/^(\S+):(\d+):?$/\x1b:e $1\x0d:$2\x0d/ }); |
62 | |
62 | |
63 | /%[0-9a-fA-F]{2}/ && !/%[^0-9a-fA-F]/ && !/%.[^0-9a-fA-F]/ |
63 | /%[0-9a-fA-F]{2}/ && !/%[^0-9a-fA-F]/ && !/%.[^0-9a-fA-F]/ |