File tree 1 file changed +4
-2
lines changed
play.pokemonshowdown.com/js
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1387
1387
type : 'GET' ,
1388
1388
url : url ,
1389
1389
success : function ( data ) {
1390
- if ( / ^ h t t p s ? : \/ \/ p o k e p a s t \. e s \/ .* \/ j s o n \s * $ / . test ( url ) ) {
1390
+ if ( / ^ h t t p s ? : \/ \/ ( p o k e p a s t \. e s | p o k e b i n \. c o m ) \/ .* \/ j s o n \s * $ / . test ( url ) ) {
1391
1391
1392
1392
var notes = data . notes . split ( '\n' ) ;
1393
1393
if ( notes [ 0 ] . startsWith ( 'Format: ' ) ) {
1422
1422
}
1423
1423
} ,
1424
1424
importableUrl : function ( value ) {
1425
- var match = value . match ( / ^ h t t p s ? : \/ \/ ( p o k e p a s t \. e s | g i s t \. g i t h u b (?: u s e r c o n t e n t ) ? \. c o m ) \/ ( .* ) \s * $ / ) ;
1425
+ var match = value . match ( / ^ h t t p s ? : \/ \/ ( p o k e b i n \. c o m | p o k e p a s t \. e s | g i s t \. g i t h u b (?: u s e r c o n t e n t ) ? \. c o m ) \/ ( .* ) \s * $ / ) ;
1426
1426
if ( ! match ) return ;
1427
1427
1428
1428
var host = match [ 1 ] ;
1431
1431
switch ( host ) {
1432
1432
case 'pokepast.es' :
1433
1433
return 'https://pokepast.es/' + path . replace ( / \/ .* / , '' ) + '/json' ;
1434
+ case 'pokebin.com' :
1435
+ return 'https://pokebin.com/' + path . replace ( / \/ .* / , '' ) + '/json' ;
1434
1436
default : // gist
1435
1437
var split = path . split ( '/' ) ;
1436
1438
return split . length < 2 ? undefined : 'https://gist.githubusercontent.com/' + split [ 0 ] + '/' + split [ 1 ] + '/raw' ;
You can’t perform that action at this time.
0 commit comments