incubator-esme-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vdic...@apache.org
Subject svn commit: r1044949 - /incubator/esme/branches/lift-2.2/trunk/server/src/main/scala/org/apache/esme/lib/MsgParser.scala
Date Sun, 12 Dec 2010 22:40:39 GMT
Author: vdichev
Date: Sun Dec 12 22:40:39 2010
New Revision: 1044949

URL: http://svn.apache.org/viewvc?rev=1044949&view=rev
Log:
Fix failing hash tag parsing due to failing implicit conversion from List[Char] to String

Modified:
    incubator/esme/branches/lift-2.2/trunk/server/src/main/scala/org/apache/esme/lib/MsgParser.scala

Modified: incubator/esme/branches/lift-2.2/trunk/server/src/main/scala/org/apache/esme/lib/MsgParser.scala
URL: http://svn.apache.org/viewvc/incubator/esme/branches/lift-2.2/trunk/server/src/main/scala/org/apache/esme/lib/MsgParser.scala?rev=1044949&r1=1044948&r2=1044949&view=diff
==============================================================================
--- incubator/esme/branches/lift-2.2/trunk/server/src/main/scala/org/apache/esme/lib/MsgParser.scala
(original)
+++ incubator/esme/branches/lift-2.2/trunk/server/src/main/scala/org/apache/esme/lib/MsgParser.scala
Sun Dec 12 22:40:39 2010
@@ -210,7 +210,7 @@ object MsgParser extends Parsers with Im
   def isNameChar(in: Char): Boolean = isTagChar(in) 
 
   lazy val hashTag: Parser[HashTag] = '#' ~> rep1(tagChar) ^^ {
-    case xs => HashTag(Tag.findOrCreate(xs))
+    case xs => HashTag(Tag.findOrCreate(xs.mkString("").trim))
   }
   
   lazy val tagChar: Parser[Elem] = elem("Tag Char", isTagChar _)



Mime
View raw message