Skip to content

Commit

Permalink
Restore backslash in FakerService#curlyBraceRegex
Browse files Browse the repository at this point in the history
  • Loading branch information
serpro69 committed Aug 11, 2022
1 parent 6e87e06 commit 7670b47
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ import kotlin.reflect.full.declaredMemberProperties
* @constructor creates an instance of this [FakerService] with the default 'en' locale if is not specified.
*/
internal class FakerService {
private val curlyBraceRegex = Regex("""#\{(?!\d)(\p{L}+\.)?(.*?)}""")
@Suppress("RegExpRedundantEscape")
private val curlyBraceRegex = Regex("""#\{(?!\d)(\p{L}+\.)?(.*?)\}""")
private val locale: String
internal val faker: Faker
internal val randomService: RandomService
Expand Down

0 comments on commit 7670b47

Please sign in to comment.