This repository was archived by the owner on Nov 25, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
core/src/plugins/gui.ajax/res/js Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -27,18 +27,18 @@ var LangUtils = (function () {
27
27
LangUtils . parseUrl = function parseUrl ( data ) {
28
28
var matches = $A ( ) ;
29
29
//var e=/((http|ftp):\/)?\/?([^:\/\s]+)((\/\w+)*\/)([\w\-\.]+\.[^#?\s]+)(#[\w\-]+)?/;
30
- var detect = / ( ( ( a j x p \. ) ( \w + ) ) : \/ ) ? \/ ? ( [ ^ : \/ \s ] + ) ( ( \/ \w + ) * \/ ) ( .* ) ( # [ \w \- ] + ) ? / g;
30
+ var detect = / ( p y d i o : \/ ) ? \/ ? ( [ ^ : \/ \s ] + ) ( ( \/ \w + ) * \/ ) ( .* ) ( # [ \w \- ] + ) ? / g;
31
31
var results = data . match ( detect ) ;
32
32
if ( results && results . length ) {
33
- var e = / ^ ( ( a j x p \. ( \w + ) ) : \/ ) ? \/ ? ( [ ^ : \/ \s ] + ) ( ( \/ \w + ) * \/ ) ( .* ) ( # [ \w \- ] + ) ? $ / ;
33
+ var e = / ^ ( ( p y d i o ) : \/ ) ? \/ ? ( [ ^ : \/ \s ] + ) ( ( \/ \w + ) * \/ ) ( .* ) ( # [ \w \- ] + ) ? $ / ;
34
34
for ( var i = 0 ; i < results . length ; i ++ ) {
35
35
if ( results [ i ] . match ( e ) ) {
36
36
matches . push ( { url : RegExp [ '$&' ] ,
37
37
protocol : RegExp . $2 ,
38
- host : RegExp . $4 ,
39
- path : RegExp . $5 ,
40
- file : RegExp . $7 ,
41
- hash : RegExp . $8 } ) ;
38
+ host : RegExp . $3 ,
39
+ path : RegExp . $4 ,
40
+ file : RegExp . $6 ,
41
+ hash : RegExp . $7 } ) ;
42
42
}
43
43
}
44
44
}
Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ class LangUtils{
22
22
static parseUrl ( data ) {
23
23
var matches = $A ( ) ;
24
24
//var e=/((http|ftp):\/)?\/?([^:\/\s]+)((\/\w+)*\/)([\w\-\.]+\.[^#?\s]+)(#[\w\-]+)?/;
25
- var detect = / ( ( ( a j x p \. ) ( \w + ) ) : \/ ) ? \/ ? ( [ ^ : \/ \s ] + ) ( ( \/ \w + ) * \/ ) ( .* ) ( # [ \w \- ] + ) ? / g;
25
+ var detect = / ( p y d i o : \/ ) ? \/ ? ( [ ^ : \/ \s ] + ) ( ( \/ \w + ) * \/ ) ( .* ) ( # [ \w \- ] + ) ? / g;
26
26
var results = data . match ( detect ) ;
27
27
if ( results && results . length ) {
28
- var e = / ^ ( ( a j x p \. ( \w + ) ) : \/ ) ? \/ ? ( [ ^ : \/ \s ] + ) ( ( \/ \w + ) * \/ ) ( .* ) ( # [ \w \- ] + ) ? $ / ;
28
+ var e = / ^ ( ( p y d i o ) : \/ ) ? \/ ? ( [ ^ : \/ \s ] + ) ( ( \/ \w + ) * \/ ) ( .* ) ( # [ \w \- ] + ) ? $ / ;
29
29
for ( var i = 0 ; i < results . length ; i ++ ) {
30
30
if ( results [ i ] . match ( e ) ) {
31
31
matches . push ( { url : RegExp [ '$&' ] ,
You can’t perform that action at this time.
0 commit comments