serpro69 / kotlin-faker

Port of a popular ruby faker gem written in kotlin. Generate realistically looking fake data such as names, addresses, banking details, and many more, that can be used for testing and data anonymization purposes.
https://serpro69.github.io/kotlin-faker/
MIT License
468 stars 41 forks source link

Regexify fails with StackOverflowError #209

Closed axelfontaine closed 4 months ago

axelfontaine commented 8 months ago

Regex: ^arn:.+:.+:.*:([0-9]{12}):(.+)$

serpro69 commented 8 months ago

Thanks for opening the issue @axelfontaine ,

Let me check, I think it could be an issue in the generex dependency, since there's not much logic in faker itself regarding regexifying strings.

axelfontaine commented 8 months ago

@serpro69 It is most certainly downstream. However this could potentially mean that generex may have to be switched out for either an internal solution or another lib.

The answers to this question mention a few alternatives: https://stackoverflow.com/questions/22115/using-regex-to-generate-strings-rather-than-match-them

serpro69 commented 8 months ago

Yeah, I'm always open to removing dependencies :) Just haven't had time lately to prioritize this kind of stuff. But it could likely be the only option for this issue and #207 ad well.

axelfontaine commented 8 months ago

Probably caused by https://github.com/mifmif/Generex/issues/56

serpro69 commented 8 months ago

Good find :+1: and an old issue that didn't get much attention... Well, this means generex will have to go :)