From 7670b471ad827d1457cb42e86cd7cdb5508aff7e Mon Sep 17 00:00:00 2001 From: Sergio Pro Date: Thu, 11 Aug 2022 07:17:34 +0200 Subject: [PATCH] Restore backslash in FakerService#curlyBraceRegex --- core/src/main/kotlin/io/github/serpro69/kfaker/FakerService.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/kotlin/io/github/serpro69/kfaker/FakerService.kt b/core/src/main/kotlin/io/github/serpro69/kfaker/FakerService.kt index deef2f82c..e9fde9df4 100644 --- a/core/src/main/kotlin/io/github/serpro69/kfaker/FakerService.kt +++ b/core/src/main/kotlin/io/github/serpro69/kfaker/FakerService.kt @@ -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