Skip to content

Commit

Permalink
Get-ClassResourceProperty: Fix more limited wildcard search (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
johlju authored Aug 9, 2022
1 parent 7031ab3 commit 3f58fc5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- `Get-ClassResourceProperty`
- Now does a more limited wildcard search for the class script file ([issue #122](https://github.com/dsccommunity/DscResource.DocGenerator/issues/122)).

## [0.11.0] - 2022-05-10

### Changed
Expand Down
2 changes: 1 addition & 1 deletion source/Private/Get-ClassResourceProperty.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function Get-ClassResourceProperty
{
$dscResourceAst = Get-ClassAst -ClassName $currentClassName -ScriptFile $BuiltModuleScriptFilePath

$sourceFilePath = Join-Path -Path $SourcePath -ChildPath ('Classes/*{0}.ps1' -f $currentClassName)
$sourceFilePath = Join-Path -Path $SourcePath -ChildPath ('Classes/???.{0}.ps1' -f $currentClassName)

$dscResourceCommentBasedHelp = Get-CommentBasedHelp -Path $sourceFilePath

Expand Down

0 comments on commit 3f58fc5

Please sign in to comment.