@antora/asciidoc-loader
Advanced tools
Comparing version 3.0.0-alpha.1 to 3.0.0-alpha.2
@@ -74,10 +74,10 @@ 'use strict' | ||
let to = linedef.substr(delim + 2) | ||
if ((to = parseInt(to) || -1) > 0) { | ||
if ((from = parseInt(from) || -1) > 0) { | ||
if ((to = parseInt(to, 10) || -1) > 0) { | ||
if ((from = parseInt(from, 10) || -1) > 0) { | ||
for (let i = from; i <= to; i++) linenums.push(i) | ||
} | ||
} else if (to === -1 && (from = parseInt(from) || -1) > 0) { | ||
} else if (to === -1 && (from = parseInt(from, 10) || -1) > 0) { | ||
linenums.push(from, Infinity) | ||
} | ||
} else if ((from = parseInt(linedef) || -1) > 0) { | ||
} else if ((from = parseInt(linedef, 10) || -1) > 0) { | ||
linenums.push(from) | ||
@@ -84,0 +84,0 @@ } |
@@ -108,3 +108,3 @@ 'use strict' | ||
attrs['page-module'] = module_ | ||
attrs['page-relative'] = attrs['page-relative-src-path'] = relative | ||
attrs['page-relative-src-path'] = relative | ||
if (origin) { | ||
@@ -111,0 +111,0 @@ attrs['page-origin-type'] = origin.type |
{ | ||
"name": "@antora/asciidoc-loader", | ||
"version": "3.0.0-alpha.1", | ||
"version": "3.0.0-alpha.2", | ||
"description": "Loads AsciiDoc content into an Asciidoctor Document object (AST) for use in an Antora documentation pipeline.", | ||
@@ -38,3 +38,3 @@ "license": "MPL-2.0", | ||
], | ||
"gitHead": "337ff6d2ed11e1f4d0a8ef993ddc8eaac7a73e9f" | ||
"gitHead": "997231474334311f3e5ff55d68534f5ae6e5d7ee" | ||
} |
@@ -19,4 +19,4 @@ # Antora AsciiDoc Loader | ||
Copyright (C) 2017-2020 [OpenDevise Inc.](https://opendevise.com) and the [Antora Project](https://antora.org). | ||
Copyright (C) 2017-present [OpenDevise Inc.](https://opendevise.com) and the [Antora Project](https://antora.org). | ||
Use of this software is granted under the terms of the [Mozilla Public License Version 2.0](https://www.mozilla.org/en-US/MPL/2.0/) (MPL-2.0). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50188