mirror of
https://github.com/EDCD/EDDN.git
synced 2025-06-10 04:12:22 +03:00
monitor/schemas.html: Actually, those bits are schema URLs, so revert change
It's only the monitor endpoint URL that needed to be configurable. Anyone using this wholesale for schemas not under eddn.edcd.io gets to make the necessary hard-coded changes.
This commit is contained in:
parent
11ac577e34
commit
0916d0c440
@ -122,13 +122,13 @@
|
||||
return finishedslug.toLowerCase();
|
||||
}
|
||||
var makeName = function(str) {
|
||||
var match = /^https:\/\/' + eddn_config.eddn_host + '\/schemas\/(\w)(\w*)\/(\d+)$/.exec(str);
|
||||
var match = /^https:\/\/eddn.edcd.io\/schemas\/(\w)(\w*)\/(\d+)$/.exec(str);
|
||||
if(match)
|
||||
{
|
||||
return match[1].toUpperCase() + match[2] + " v" + match[3];
|
||||
}
|
||||
|
||||
var match = /^https:\/\/' + eddn_config.eddn_host + '\/schemas\/(\w)(\w*)\/(\d+)\/test$/.exec(str);
|
||||
var match = /^https:\/\/eddn.edcd.io\/schemas\/(\w)(\w*)\/(\d+)\/test$/.exec(str);
|
||||
if(match)
|
||||
{
|
||||
return match[1].toUpperCase() + match[2] + " v" + match[3] + " [TEST]";
|
||||
|
Loading…
x
Reference in New Issue
Block a user