nix store log
This commit is contained in:
parent
5d0e5f7f1c
commit
0d140e58ca
13 changed files with 81 additions and 46 deletions
|
@ -16,4 +16,14 @@ export const StringExtensions = () => {
|
|||
return this[this.length - 1];
|
||||
};
|
||||
}
|
||||
if ("".hasPattern === undefined) {
|
||||
String.prototype.hasPattern = function (pattern) {
|
||||
return new RegExp(pattern).test(this);
|
||||
};
|
||||
}
|
||||
if ("".hasNoPattern === undefined) {
|
||||
String.prototype.hasNoPattern = function (pattern) {
|
||||
return !this.hasPattern(pattern);
|
||||
};
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue