mirror of
https://github.com/stashapp/stash.git
synced 2026-02-25 00:33:03 +01:00
Fix tagger parsing bugs (#1172)
This commit is contained in:
parent
e5c5cde974
commit
c2c06d8f8d
1 changed files with 2 additions and 2 deletions
|
|
@ -68,7 +68,7 @@ const parseDate = (input: string): string => {
|
|||
if (mmddyy) {
|
||||
output = output.replace(
|
||||
mmddyy[0],
|
||||
` 20${mmddyy[1]}-${mmddyy[2]}-${mmddyy[3]} `
|
||||
` ${mmddyy[1]}-${mmddyy[2]}-${mmddyy[3]} `
|
||||
);
|
||||
}
|
||||
const ddMMyy = output.match(ddMMyyRegex);
|
||||
|
|
@ -133,7 +133,7 @@ function prepareQueryString(
|
|||
s = paths[paths.length - 1];
|
||||
}
|
||||
blacklist.forEach((b) => {
|
||||
s = s.replace(new RegExp(b, "i"), "");
|
||||
s = s.replace(new RegExp(b, "gi"), " ");
|
||||
});
|
||||
s = parseDate(s);
|
||||
return s.replace(/\./g, " ");
|
||||
|
|
|
|||
Loading…
Reference in a new issue