Fix off by one error

This commit is contained in:
dfinke
2016-02-24 15:52:55 -05:00
parent 2ff98d1de5
commit 5d449f91e6
3 changed files with 4 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ function Get-HtmlTable {
$r = Invoke-WebRequest $url $r = Invoke-WebRequest $url
$table = $r.ParsedHtml.getElementsByTagName("table")[$tableIndex] $table = $r.ParsedHtml.getElementsByTagName("table")[$tableIndex]
$propertyNames = @() $propertyNames = @()
$totalRows=@($table.rows).count-1 $totalRows=@($table.rows).count
for ($idx = 0; $idx -lt $totalRows; $idx++) { for ($idx = 0; $idx -lt $totalRows; $idx++) {

View File

@@ -4,7 +4,7 @@
RootModule = 'ImportExcel.psm1' RootModule = 'ImportExcel.psm1'
# Version number of this module. # Version number of this module.
ModuleVersion = '2.1.0' ModuleVersion = '2.1.2'
# ID used to uniquely identify this module # ID used to uniquely identify this module
GUID = '60dd4136-feff-401a-ba27-a84458c57ede' GUID = '60dd4136-feff-401a-ba27-a84458c57ede'
@@ -98,7 +98,7 @@ PrivateData = @{
LicenseUri = "https://github.com/dfinke/ImportExcel/blob/master/LICENSE.txt" LicenseUri = "https://github.com/dfinke/ImportExcel/blob/master/LICENSE.txt"
# Release notes for this particular version of the module # Release notes for this particular version of the module
# ReleaseNotes = False #ReleaseNotes = $True
# If true, the LicenseUrl points to an end-user license (not just a source license) which requires the user agreement before use. # If true, the LicenseUrl points to an end-user license (not just a source license) which requires the user agreement before use.
# RequireLicenseAcceptance = "" # RequireLicenseAcceptance = ""

View File

@@ -2,7 +2,7 @@
$p = @{ $p = @{
Name = "ImportExcel" Name = "ImportExcel"
NuGetApiKey = $NuGetApiKey NuGetApiKey = $NuGetApiKey
ReleaseNote = "Added Import-Html" ReleaseNote = "Fix off by one error for Import-Html"
} }
Publish-Module @p Publish-Module @p