]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
Fix regexp for command matching
authorvague666 <redacted>
Thu, 10 Mar 2022 15:43:44 +0000 (16:43 +0100)
committerAilin Nemui <redacted>
Mon, 25 Apr 2022 11:55:30 +0000 (13:55 +0200)
scripts/intercept.pl

index 9528294bc75a38a86b5f6ce10b14dab0ef518d79..4fef6f6f3bd6edb69a20a9792e087cf4111c5388 100644 (file)
@@ -128,7 +128,7 @@ sub sig_send_text {
       Irssi::signal_stop();
       require_confirmation($text);
     }
-    elsif($data =~ /^\s*($cmdregexp)/i) {
+    elsif($data =~ /^\s*($cmdregexp)\b/i) {
       my $text = "The first word, '$1', looks like a command, is this what you wanted? [y/F/c]";
       $isword = 1;
       $pending_input = {
git clone https://git.99rst.org/PROJECT