mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-06 00:23:20 +00:00
Fix off by one error
This commit is contained in:
@@ -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++) {
|
||||||
|
|
||||||
|
|||||||
@@ -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 = ""
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user