mirror of
https://github.com/grocy/grocy.git
synced 2025-08-16 18:54:35 +00:00
Removed type conversions where no longer needed
PHP 8.1 PDO SQLite now returns native data types
This commit is contained in:
@@ -11,11 +11,6 @@ String.prototype.contains = function(search)
|
||||
return this.toLowerCase().indexOf(search.toLowerCase()) !== -1;
|
||||
};
|
||||
|
||||
String.prototype.isEmpty = function()
|
||||
{
|
||||
return (this.length === 0 || !this.trim());
|
||||
};
|
||||
|
||||
String.prototype.replaceAll = function(search, replacement)
|
||||
{
|
||||
return this.replace(new RegExp(search, "g"), replacement);
|
||||
|
Reference in New Issue
Block a user