From b70beb69251d0abf7802fe24ecda4ede67d163dc Mon Sep 17 00:00:00 2001 From: agriffis Date: Wed, 23 Mar 2005 18:20:00 +0000 Subject: [PATCH] Only modify non-masked keywords with "all" svn path=/; revision=202 --- trunk/src/ekeyword/ChangeLog | 3 +++ trunk/src/ekeyword/ekeyword | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/trunk/src/ekeyword/ChangeLog b/trunk/src/ekeyword/ChangeLog index 881afee..6be92a5 100644 --- a/trunk/src/ekeyword/ChangeLog +++ b/trunk/src/ekeyword/ChangeLog @@ -1,3 +1,6 @@ +23 Mar 2005 Aron Griffis + * Only modify non-masked keywords with "all" + 17 Mar 2005 Aron Griffis * Sort keywords alphabetically diff --git a/trunk/src/ekeyword/ekeyword b/trunk/src/ekeyword/ekeyword index 46935df..738540b 100644 --- a/trunk/src/ekeyword/ekeyword +++ b/trunk/src/ekeyword/ekeyword @@ -68,8 +68,8 @@ for my $f (@ARGV) { # add or modify keywords else { if ($arch eq 'all') { - # modify every keyword in the list - $quoted =~ s/(^|\s)[-~]?(?=\w)/$1$leader/g; + # modify all non-masked keywords in the list + $quoted =~ s/(^|\s)~?(?=\w)/$1$leader/g; } else { # modify or add keyword unless ($quoted =~ s/[-~]?\Q$arch\E(\s|$)/$leader$arch$1/) { -- 2.26.2