Skip to content

Commit

Permalink
110088: lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens Vannerum committed Jan 4, 2024
1 parent 4bbfb4c commit 74f1c61
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ChangeDetectorRef, Component, EventEmitter, Input, OnInit, Output } fro
import { UntypedFormGroup } from '@angular/forms';

import { Observable, of as observableOf } from 'rxjs';
import { catchError, distinctUntilChanged, map, tap } from 'rxjs/operators';
import { catchError, map, tap } from 'rxjs/operators';
import { NgbDropdown } from '@ng-bootstrap/ng-bootstrap';
import { DynamicFormLayoutService, DynamicFormValidationService } from '@ng-dynamic-forms/core';

Expand Down Expand Up @@ -139,7 +139,7 @@ export class DsDynamicScrollableDropdownComponent extends DsDynamicVocabularyCom

isAcceptableKey(keyPress: string): boolean {
// allow all letters and numbers
if (keyPress.length == 1 && keyPress.match(/^[a-zA-Z0-9]*$/)) {
if (keyPress.length === 1 && keyPress.match(/^[a-zA-Z0-9]*$/)) {
return true;
}
// Some other characters like space, dash, etc should be allowed as well
Expand Down

0 comments on commit 74f1c61

Please sign in to comment.