dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Cache VCS commit id/date text on Special:Version"
[lhc/web/wiklou.git]
/
resources
/
mediawiki
/
mediawiki.Uri.js
diff --git
a/resources/mediawiki/mediawiki.Uri.js
b/resources/mediawiki/mediawiki.Uri.js
index
a1eed48
..
5566312
100644
(file)
--- a/
resources/mediawiki/mediawiki.Uri.js
+++ b/
resources/mediawiki/mediawiki.Uri.js
@@
-1,5
+1,5
@@
/**
/**
- * Library for simple URI parsing and manipulation.
Dependencies: mw, jQuery.
+ * Library for simple URI parsing and manipulation.
*
* Intended to be minimal, but featureful; do not expect full RFC 3986 compliance. The use cases we
* have in mind are constructing 'next page' or 'previous page' URLs, detecting whether we need to
*
* Intended to be minimal, but featureful; do not expect full RFC 3986 compliance. The use cases we
* have in mind are constructing 'next page' or 'previous page' URLs, detecting whether we need to
@@
-44,8
+44,8
@@
* (N.b., 'password' is technically not allowed for HTTP URIs, but it is possible with other kinds
* of URIs.)
*
* (N.b., 'password' is technically not allowed for HTTP URIs, but it is possible with other kinds
* of URIs.)
*
- * Parsing based on parseUri 1.2.2 (c) Steven Levithan <stevenlevithan.com>, MIT License.
- *
http://stevenlevithan.com/demo/parseuri/js/
+ * Parsing based on parseUri 1.2.2 (c) Steven Levithan <
http://
stevenlevithan.com>, MIT License.
+ *
<http://stevenlevithan.com/demo/parseuri/js/>
*
* @class mw.Uri
*/
*
* @class mw.Uri
*/
@@
-222,8
+222,8
@@
*/
Uri.encode = function ( s ) {
return encodeURIComponent( s )
*/
Uri.encode = function ( s ) {
return encodeURIComponent( s )
- .replace( /!/g, '%21'
).replace( /'/g, '%27').replace( /\(/g, '%28'
)
- .replace( /\)/g, '%29'
).replace( /\*/g, '%2A'
)
+ .replace( /!/g, '%21'
).replace( /'/g, '%27' ).replace( /\(/g, '%28'
)
+ .replace( /\)/g, '%29'
).replace( /\*/g, '%2A'
)
.replace( /%20/g, '+' );
};
.replace( /%20/g, '+' );
};