[ADF-3591] spellcheck support for code (#3827)

* setup spellcheck
This commit is contained in:
Denys Vuika
2018-10-23 15:05:38 +01:00
committed by Eugenio Romano
parent 53d96679ea
commit e39a2b149b
262 changed files with 1561 additions and 1005 deletions

View File

@@ -23,7 +23,7 @@ export class MomentDateAdapter extends DateAdapter<Moment> {
private localeData: any = moment.localeData();
overrideDisplyaFormat: string;
overrideDisplayFormat: string;
getYear(date: Moment): number {
return date.year();
@@ -109,7 +109,7 @@ export class MomentDateAdapter extends DateAdapter<Moment> {
let m = moment(value, parseFormat, locale, true);
if (!m.isValid()) {
// use strict parsing because Moment's parser is very forgiving, and this can lead to undesired behavior.
m = moment(value, this.overrideDisplyaFormat, locale, true);
m = moment(value, this.overrideDisplayFormat, locale, true);
}
if (m.isValid()) {
// if user omits year, it defaults to 2001, so check for that issue.
@@ -131,7 +131,7 @@ export class MomentDateAdapter extends DateAdapter<Moment> {
format(date: Moment, displayFormat: any): string {
date = this.clone(date);
displayFormat = this.overrideDisplyaFormat ? this.overrideDisplyaFormat : displayFormat;
displayFormat = this.overrideDisplayFormat ? this.overrideDisplayFormat : displayFormat;
if (date && date.format) {
return date.format(displayFormat);