string manipulation in pattern #2262
-
Is there a way to do simple string manipulation in the patterns? e.g. replace(/'/g, '') I'm trying to avoid the use of apostrophes in faked street address, and the simplest way i've found to do it is by creating a custom locale and changing the street pattern to avoid using last name data, which includes names like "O'donnel", "O'Leary", etc. |
Beta Was this translation helpful? Give feedback.
Answered by
ahaberbosch
Jul 17, 2023
Replies: 1 comment 4 replies
-
AFAICT there are only two ways two do this:
For the names or the addresses |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I created a new class that extends Faker class
It seems to work, please let me know if this has particular shortcomings