mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-14 18:46:52 +01:00
more code cleanup
This commit is contained in:
parent
0826e0f96b
commit
20a6c5e7b7
1 changed files with 3 additions and 3 deletions
|
|
@ -40,9 +40,9 @@ export class LocalizedDateParserFormatter extends NgbDateParserFormatter {
|
|||
* any parts of the string, e.g. allowing for 1/2/22,
|
||||
* which allows quick entry of the date on the numpad.
|
||||
*/
|
||||
public preformatDateInput(value: string): string {
|
||||
let inputFormat = this.getDateInputFormat()
|
||||
let dateSeparator = inputFormat.replace(/[dmy]/gi, '').charAt(0)
|
||||
private preformatDateInput(value: string): string {
|
||||
const inputFormat = this.getDateInputFormat()
|
||||
const dateSeparator = inputFormat.replace(/[dmy]/gi, '').charAt(0)
|
||||
|
||||
if (this.separatorRegExp.test(value)) {
|
||||
// split on separator, pad & re-join without separator
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue