Skip to content
This repository has been archived by the owner on Sep 9, 2021. It is now read-only.

Commit

Permalink
fix: do not stringify potentially invalid characters (#34)
Browse files Browse the repository at this point in the history
This can occasionally release zalgo in your terminal.
  • Loading branch information
achingbrain committed Feb 17, 2020
1 parent 5041551 commit 0034ede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/key.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Key {
}

if (this._buf.length === 0 || this._buf[0] !== pathSep) {
throw new Error(`Invalid key: ${this.toString()}`)
throw new Error('Invalid key')
}
}

Expand Down

0 comments on commit 0034ede

Please sign in to comment.