nix store log

This commit is contained in:
IDONTSUDO 2023-12-14 23:04:45 +03:00
parent 5d0e5f7f1c
commit 0d140e58ca
13 changed files with 81 additions and 46 deletions

View file

@ -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);
};
}
};