Skip to content

Commit 7670b47

Browse files
committed
Restore backslash in FakerService#curlyBraceRegex
1 parent 6e87e06 commit 7670b47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/main/kotlin/io/github/serpro69/kfaker/FakerService.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ import kotlin.reflect.full.declaredMemberProperties
3636
* @constructor creates an instance of this [FakerService] with the default 'en' locale if is not specified.
3737
*/
3838
internal class FakerService {
39-
private val curlyBraceRegex = Regex("""#\{(?!\d)(\p{L}+\.)?(.*?)}""")
39+
@Suppress("RegExpRedundantEscape")
40+
private val curlyBraceRegex = Regex("""#\{(?!\d)(\p{L}+\.)?(.*?)\}""")
4041
private val locale: String
4142
internal val faker: Faker
4243
internal val randomService: RandomService

0 commit comments

Comments
 (0)