Commit c5cc1af3 authored by Éloïs's avatar Éloïs
Browse files

[fix] ws2p patch (delete space)

parent 95dad4bc
......@@ -34,8 +34,13 @@ export class WS2PCluster {
}
// Make the path be a string
path = path || ''
// delete the space at the beginning of the path
if (path.match(/^ /))
{
path = path.substr(1)
}
// Check that the path starts well with / (added if not)
if (!path.match('/^\//'))
if (!path.match(/^\//))
{
path = '/'+path
}
......
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