From a16126392b3723a3f054d71bf3b13217f050eba0 Mon Sep 17 00:00:00 2001 From: Filipe Regadas Date: Wed, 4 Dec 2019 14:46:28 -0500 Subject: [PATCH] Fix arg name extraction with _ and $ --- src/main/scala/com/spotify/scio/AnnotationTypeInjector.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/com/spotify/scio/AnnotationTypeInjector.scala b/src/main/scala/com/spotify/scio/AnnotationTypeInjector.scala index 366d4ae..2f62a57 100644 --- a/src/main/scala/com/spotify/scio/AnnotationTypeInjector.scala +++ b/src/main/scala/com/spotify/scio/AnnotationTypeInjector.scala @@ -35,7 +35,7 @@ import scala.collection.mutable object AnnotationTypeInjector { private val Log = Logger.getInstance(classOf[AnnotationTypeInjector]) private val CaseClassArgs = """case\s+class\s+[^(]+\((.*)\).*""".r - private val TypeArg = """[a-zA-Z0-9]+\s*:\s*[a-zA-Z0-9._]+([\[(](.*?)[)\]]+)?""".r + private val TypeArg = """[a-zA-Z0-9_$]+\s*:\s*[a-zA-Z0-9._$]+([\[(](.*?)[)\]]+)?""".r private val AlertEveryMissedXInvocations = 5 def getApplyPropsSignature(caseClasses: Option[String]): Seq[String] =