[interchange] Usertag Alias now only substitutes hyphens in first word, allowing for:

Josh Lavin <[email protected]>
Newsgroups gmane.comp.web.interchange.cvs
Message-ID <[email protected]>
commit 4bed57ed6d49ae88e8fd3046cb29eed4e7e0ff3c
Author: Josh Lavin <[email protected]>
Date:   Tue Dec 24 13:27:23 2013 -0800

    Usertag Alias now only substitutes hyphens in first word, allowing for:
    
       UserTag edisplay Alias error auto=1 class="list-unstyled alert alert-danger"
    
    to work as expected.

 lib/Vend/Parse.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/Vend/Parse.pm b/lib/Vend/Parse.pm
index c43d9f8..59da2f4 100644
--- a/lib/Vend/Parse.pm
+++ b/lib/Vend/Parse.pm
@@ -647,7 +647,7 @@ sub start {
 		if(defined $Alias{$tag}) {
 			$aliasname = $tag;
 			my $alias = $Alias{$tag};
-			$alias =~ tr/-/_/;
+			$alias =~ s{^(\S+)}{ $_ = $1; tr/-/_/; $_ }e;
 			$tag =~ s/_/[-_]/g;
 #::logDebug("origtext: $origtext tag=$tag alias=$alias");
 			$origtext =~ s/$tag/$alias/i
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.