Skip to content

Commit

Permalink
Fix a bug related to regularExpression
Browse files Browse the repository at this point in the history
  • Loading branch information
Kota Mizushima committed Jul 23, 2017
1 parent ff2fe95 commit 6a1be0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/com/github/kmizu/scomb/SCombinator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ abstract class SCombinator[R] {self =>
} else {
val substring = current(index)
literal.findPrefixOf(substring) match {
case Some(prefix) => Success(substring.substring(prefix.length), index + prefix.length)
case Some(prefix) => Success(prefix, index + prefix.length)
case None => Failure(s"expected:`${literal}`", index)
}
}
Expand Down

0 comments on commit 6a1be0c

Please sign in to comment.