mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-04-16 21:06:44 +02:00
fix some travis bug
This commit is contained in:
parent
9281cfb8db
commit
ae11223c0c
@ -709,16 +709,16 @@ namespace OS {
|
|||||||
String.prototype.trimLeft = function(charlist: string): string {
|
String.prototype.trimLeft = function(charlist: string): string {
|
||||||
if (charlist === undefined) charlist = "s";
|
if (charlist === undefined) charlist = "s";
|
||||||
|
|
||||||
return this.replace(new RegExp("^[" + charlist + "]+"), "");
|
return this.replace(new RegExp("^[" + charlist + "]+"), "") as string;
|
||||||
};
|
};
|
||||||
String.prototype.trimRight = function(charlist: string): string {
|
String.prototype.trimRight = function(charlist: string): string {
|
||||||
if (charlist === undefined) charlist = "s";
|
if (charlist === undefined) charlist = "s";
|
||||||
|
|
||||||
return this.replace(new RegExp("[" + charlist + "]+$"), "");
|
return this.replace(new RegExp("[" + charlist + "]+$"), "") as string;
|
||||||
};
|
};
|
||||||
|
|
||||||
String.prototype.trimBy = function (charlist: string) {
|
String.prototype.trimBy = function(charlist: string): string {
|
||||||
return this.trimLeft(charlist).trimRight(charlist);
|
return this.trimLeft(charlist).trimRight(charlist) as string;
|
||||||
};
|
};
|
||||||
Date.prototype.toString = function(): string {
|
Date.prototype.toString = function(): string {
|
||||||
let dd = this.getDate();
|
let dd = this.getDate();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user