Skip to content

Commit

Permalink
refactor: rename the prop name
Browse files Browse the repository at this point in the history
  • Loading branch information
jaluik committed Feb 20, 2024
1 parent 6fb7972 commit a82ecf3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/interfaces/options.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export interface IOptions {
reportersOptions?: Record<string, any>;
tokensToSkip?: string[];
hashFunction?: (value: string) => string;
customFilter?: (clone: IClone) => boolean;
customValidate?: (clone: IClone) => boolean;
exitCode?: number;
}

Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/rabin-karp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ export class RabinKarp {

let status = validation.status

if (this.options.customFilter) {
status = status && this.options.customFilter(clone)
if (this.options.customValidate) {
status = status && this.options.customValidate(clone)
}

if (status) {
Expand Down

0 comments on commit a82ecf3

Please sign in to comment.