Skip to content

Commit 39c7bce

Browse files
fix types
1 parent 65a822d commit 39c7bce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sjsonnet/src/sjsonnet/StdRegex.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ object StdRegex {
1010
val compiledPattern = Platform.getPatternFromCache(pattern.asString)
1111
val matcher = compiledPattern.matcher(str.asString)
1212
var returnStr: Val = null
13-
val captures = Array.newBuilder[Val.Str]
13+
val captures = Array.newBuilder[Val]
1414
val groupCount = matcher.groupCount()
1515
while (matcher.find()) {
1616
if (returnStr == null) {
@@ -48,7 +48,7 @@ object StdRegex {
4848
"captures" -> new Obj.ConstMember(true, Visibility.Normal, new Val.Arr(pos.noOffset, Array.empty[Lazy]))
4949
)
5050
} else {
51-
val captures = Array.newBuilder[Val.Str]
51+
val captures = Array.newBuilder[Val]
5252
val groupCount = matcher.groupCount()
5353
for (i <- 0 to groupCount) {
5454
val m = matcher.group(i)

0 commit comments

Comments
 (0)