This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
worker_processes 1; | |
user root; | |
error_log /tmp/.nginx.log; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
server { | |
listen 8080; | |
location / { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s.sort((a,b) => { | |
a = a.replace(/^[a-z]+:\/\//, '') | |
b = b.replace(/^[a-z]+:\/\//, '') | |
a = a.split("/")[0]; | |
b = b.split("/")[0]; | |
if (a.indexOf('.') === -1) return 1 | |
if (b.indexOf('.') === -1) return -1 | |
let aa = a.split("."), | |
bb = b.split("."), |
OlderNewer