Skip to content

Commit e71e15f

Browse files
committed
Fix #33 - list partially matched provider names
1 parent 1126658 commit e71e15f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ and the project versioning adheres to [Semantic Versioning](https://semver.org/s
1212
- [#37](https://github.com/serpro69/kotlin-faker/issues/37) Revisit automated builds for patches
1313

1414
### 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:
1616
- `warhammerFantasy`
1717
- `suits`
1818
- `show`
@@ -21,6 +21,7 @@ and the project versioning adheres to [Semantic Versioning](https://semver.org/s
2121
- `control`
2222
- `dnd`
2323
- `blood`
24+
- [#33](https://github.com/serpro69/kotlin-faker/issues/33) [faker-bot] partial matching for provider names
2425

2526
## [v1.3.1] - 2020-06-07
2627
### Fixed

cli-bot/src/main/kotlin/io/github/serpro69/kfaker/app/subcommands/List.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ object List : Runnable {
4646

4747
val renderedProviders = if (providerNames.isNotEmpty()) {
4848
introspector.providerFunctions.filter { (provider, _) ->
49-
providerNames.any { it.toLowerCase() == provider.name.toLowerCase() }
49+
providerNames.any { provider.name.toLowerCase().contains(it.toLowerCase() ) }
5050
}.map { (provider, functions) ->
5151
renderProvider(options, faker, provider, functions)
5252
}

0 commit comments

Comments
 (0)