1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

another linting fix

This commit is contained in:
gras 2024-04-03 23:00:58 +02:00
parent 8805fee063
commit 6019932d71

View File

@ -145,7 +145,7 @@ export class Utils {
static timestampToOffsetString(timestamp: string) { static timestampToOffsetString(timestamp: string) {
try { try {
const offsetRegex = /[+-]\d{2}:\d{2}$/; const offsetRegex = /[+-]\d{2}:\d{2}$/;
let match = timestamp.match(offsetRegex); const match = timestamp.match(offsetRegex);
if (match) { if (match) {
return match[0]; return match[0];
} else if (timestamp.indexOf("Z") > 0) { } else if (timestamp.indexOf("Z") > 0) {