asciidoctor-jira 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.adoc CHANGED
@@ -10,13 +10,19 @@ and this project adheres to https://semver.org/spec/v2.0.0.html[Semantic Version
10
10
 
11
11
  == Unreleased
12
12
 
13
+ == 0.2.2 - 2022-08-01
14
+
15
+ === icon:bug[] Fixes
16
+
17
+ * Handle value of custom field of type number correct https://github.com/uniqueck/asciidoctor-jira/issues/46[(#47)]
18
+
13
19
  == 0.2.1 - 2022-08-01
14
20
 
15
21
  === icon:bug[] Fixes
16
22
 
17
23
  * Only show issue type icon, if `issuetye` as `customFieldId` defined https://github.com/uniqueck/asciidoctor-jira/issues/46[(#46)]
18
24
 
19
- == 0.2.0 - 2022
25
+ == 0.2.0 - 2022-07-20
20
26
 
21
27
  === icon:archive[] Dependency updates
22
28
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "asciidoctor-jira",
3
3
  "author": "Constantin Krüger (https://github.com/uniqueck)",
4
4
  "license": "MIT",
5
- "version": "0.2.1",
5
+ "version": "0.2.2",
6
6
  "bugs": {
7
7
  "url": "https://github.com/doctoolchain/asciidoctor-jira/issues"
8
8
  },
@@ -54,7 +54,11 @@ function jiraIssuesBlockMacro (context) {
54
54
  value = value || doc.getAttribute(`jira-table-${customFieldsArray[j].replace(/\./g, '-')}-default`, '-')
55
55
  }
56
56
  }
57
- content.push('|' + value.replace(/\|/g, '\\|'))
57
+ if (typeof value === 'number') {
58
+ content.push('|' + value)
59
+ } else {
60
+ content.push('|' + value.replace(/\|/g, '\\|'))
61
+ }
58
62
  }
59
63
  }
60
64
  content.push('|====')