Skip to content
Snippets Groups Projects
Commit ddc199e5 authored by Albert Gräf's avatar Albert Gräf
Browse files

Make gatom_unescape properly handle '-' prefixes.

parent 33bf9711
No related branches found
No related tags found
No related merge requests found
......@@ -196,8 +196,8 @@ function gatom_escape(str) {
}
function gatom_unescape(str) {
if (str === "-") {
str = "";
if (str.slice(0,1) === "-") {
str = str.slice(1);
} else {
var arr = str.split("");
for (var i = 0; i < arr.length; i++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment