Skip to content

Commit b33cf10

Browse files
committed
astral flag, fix for spaces in regex
1 parent 48b3ba8 commit b33cf10

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

server.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ function serveTest(query, response)
137137
{
138138
if (kv[0] in params)
139139
{
140-
params[kv[0]].push(querystring.unescape(kv[1]));
140+
params[kv[0]].push(querystring.unescape(kv[1].replace(/\+/g, " ")));
141141
}
142142
else
143143
{
144-
params[kv[0]] = [ querystring.unescape(kv[1]) ];
144+
params[kv[0]] = [ querystring.unescape(kv[1].replace(/\+/g, " ")) ];
145145
}
146146
}
147147
else
@@ -195,6 +195,10 @@ function serveTest(query, response)
195195
{
196196
str_options += 'n';
197197
}
198+
else if (option == "astral")
199+
{
200+
str_options += 'A';
201+
}
198202
else
199203
{
200204
retVal["warning"] = ('warning' in retVal ? retVal['warning'] : '') + "Invalid option '" + option + "'";

0 commit comments

Comments
 (0)