diff options
Diffstat (limited to 'src/library/scala/xml/Utility.scala')
-rw-r--r-- | src/library/scala/xml/Utility.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/xml/Utility.scala b/src/library/scala/xml/Utility.scala index 68d68ee4aa..39e594eb05 100644 --- a/src/library/scala/xml/Utility.scala +++ b/src/library/scala/xml/Utility.scala @@ -292,7 +292,7 @@ object Utility extends AnyRef with parsing.TokenTests def getName(s: String, index: Int): String = { if (index >= s.length) null else (s drop index) match { - case Seq(x, xs @ _*) if isNameStart(x) => (Array(x) ++ (xs takeWhile isNameChar)).mkString + case Seq(x, xs @ _*) if isNameStart(x) => x.toString + (xs takeWhile isNameChar).mkString case _ => "" } } |