Skip to content

Commit 56bd25a

Browse files
committed
1 parent db7a237 commit 56bd25a

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 0.1.22 (2014-06-10)
2+
3+
Bugfix:
4+
5+
- Fix a bug in clearsign dash-encoding
6+
- Address keybase/keybase-issues#768
7+
18
## 0.1.21 (2014-06-04)
29

310
Bugfix:

lib/openpgp/clearsign.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/openpgp/clearsign.iced

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ exports.input_to_cleartext = input_to_cleartext = (raw) ->
3838
#==========================================================================================
3939

4040
exports.dash_escape = dash_escape = (line) ->
41-
if (line.length >= 1 and line[0] is '-') then ("- " + line[1...]) else line
41+
if (line.length >= 1 and line[0] is '-') then ("- " + line) else line
4242

4343
#==========================================================================================
4444

4545
exports.dash_unescape_line = dash_unescape_line = (line) ->
4646
warn = false
4747
out = if (m = line.match /^-( )?(.*?)$/)?
48-
warn = true
48+
warn = true unless m[1]?.length is 1
4949
m[2]
5050
else
5151
line

0 commit comments

Comments
 (0)