mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-04-08 09:36:45 +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 {
|
||||
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 {
|
||||
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) {
|
||||
return this.trimLeft(charlist).trimRight(charlist);
|
||||
String.prototype.trimBy = function(charlist: string): string {
|
||||
return this.trimLeft(charlist).trimRight(charlist) as string;
|
||||
};
|
||||
Date.prototype.toString = function(): string {
|
||||
let dd = this.getDate();
|
||||
|
Loading…
x
Reference in New Issue
Block a user