mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-30 19:45:57 +00:00
207d9c256d
Relative dates for next airing on posters and list (series) History time shows real time on tooltip
23 lines
737 B
JavaScript
23 lines
737 B
JavaScript
'use strict';
|
|
|
|
define(
|
|
[
|
|
], function () {
|
|
|
|
return {
|
|
|
|
startsWith: function(str, starts){
|
|
if (starts === '') return true;
|
|
if (str == null || starts == null) return false;
|
|
str = String(str); starts = String(starts);
|
|
return str.length >= starts.length && str.slice(0, starts.length) === starts;
|
|
},
|
|
|
|
endsWith: function(str, ends){
|
|
if (ends === '') return true;
|
|
if (str == null || ends == null) return false;
|
|
str = String(str); ends = String(ends);
|
|
return str.length >= ends.length && str.slice(str.length - ends.length) === ends;
|
|
}
|
|
}
|
|
});
|