Skip to content

Commit b6b574a

Browse files
committed
properties char: numeric code point
1 parent 6e16de4 commit b6b574a

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

docs/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## [0.0.8]
2+
3+
**Features**
4+
5+
- Update the `properties char` command to also return the code point in numeric value [#29](https://github.com/noraj/unisec/issues/29)
6+
7+
**Chore**
8+
9+
- Fix gem release based on outdated commit
10+
111
## [0.0.7](https://github.com/noraj/unisec/releases/tag/0.0.7)
212

313
**Features**

lib/unisec/properties.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def self.char_display(chr, extended: false)
119119
data = Properties.char(chr)
120120
display = ->(key, value) { puts Paint[key, :red, :bold].ljust(30) + " #{value}" }
121121
display.call('Name:', data[:name])
122-
display.call('Code Point:', data[:codepoint])
122+
display.call('Code Point:', data[:codepoint] + " (#{Utils::String.convert(chr, :integer)})")
123123
puts
124124
display.call('Block:', data[:block])
125125
display.call('Category:', data[:category])

0 commit comments

Comments
 (0)