Commit ddc199e5 authored by Albert Gräf's avatar Albert Gräf
Browse files

Make gatom_unescape properly handle '-' prefixes.

parent 33bf9711
......@@ -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++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment