Skip to content

Commit 6a6edaf

Browse files
committed
fix comments containing tilde
1 parent 907394d commit 6a6edaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/poparser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Parser.prototype._lexer = function (chunk) {
174174
case this.states.comments:
175175
if (chr === '\n') {
176176
this._state = this.states.none;
177-
} else if (chr === '~') {
177+
} else if (chr === '~' && this._node.value === '') {
178178
this._node.value += chr;
179179
this._state = this.states.obsolete;
180180
} else if (chr !== '\r') {

0 commit comments

Comments
 (0)