File tree 2 files changed +3
-2
lines changed
cli-bot/src/main/kotlin/io/github/serpro69/kfaker/app/subcommands
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ and the project versioning adheres to [Semantic Versioning](https://semver.org/s
12
12
- [ #37 ] ( https://github.com/serpro69/kotlin-faker/issues/37 ) Revisit automated builds for patches
13
13
14
14
### Added
15
- - [ #34 ] ( https://github.com/serpro69/kotlin-faker/issues/34 ) 8 new providers:
15
+ - [ #34 ] ( https://github.com/serpro69/kotlin-faker/issues/34 ) [ core ] 8 new providers:
16
16
- ` warhammerFantasy `
17
17
- ` suits `
18
18
- ` show `
@@ -21,6 +21,7 @@ and the project versioning adheres to [Semantic Versioning](https://semver.org/s
21
21
- ` control `
22
22
- ` dnd `
23
23
- ` blood `
24
+ - [ #33 ] ( https://github.com/serpro69/kotlin-faker/issues/33 ) [ faker-bot] partial matching for provider names
24
25
25
26
## [ v1.3.1] - 2020-06-07
26
27
### Fixed
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ object List : Runnable {
46
46
47
47
val renderedProviders = if (providerNames.isNotEmpty()) {
48
48
introspector.providerFunctions.filter { (provider, _) ->
49
- providerNames.any { it. toLowerCase() == provider.name .toLowerCase() }
49
+ providerNames.any { provider.name. toLowerCase().contains(it .toLowerCase() ) }
50
50
}.map { (provider, functions) ->
51
51
renderProvider(options, faker, provider, functions)
52
52
}
You can’t perform that action at this time.
0 commit comments