demianturner / sgl-docs-tickets-migration-test

0 stars 0 forks source link

Switch of language don't work with URIs having a '-' between.... #1701

Open demianturner opened 11 years ago

demianturner commented 11 years ago

There is an error in SGL2.js in current official version 0.6.6. on line 158 var webRoot = SGL_JS_WEBROOT.match(/(http[s]?:\/\/[\w.]+([:0-9]+)?)/i)[0];

if you have URL like http://www.my-domain.de the variable webRoot contains only string "http://www.my". RegEx is not correct, because \w is wrong at this position.