Skip to content
This repository was archived by the owner on Jan 21, 2021. It is now read-only.

Added [string] to fix $matches#220

Open
okazymyrov wants to merge 3 commits intoPowerShellMafia:devfrom
okazymyrov:dev
Open

Added [string] to fix $matches#220
okazymyrov wants to merge 3 commits intoPowerShellMafia:devfrom
okazymyrov:dev

Conversation

@okazymyrov
Copy link
Copy Markdown

I have tested the dev version of the script and spotted an error. In short, $object with -match returns $null. Strings must be compared to resolve the issue.

More details are on http://stackoverflow.com/questions/8651905/powershell-match-operator-returns-true-but-matches-is-null.

@okazymyrov
Copy link
Copy Markdown
Author

I apologize for the push to the same brunch. 7885f28 is related to another fix, but also with the cast.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant