Skip to content

Commit

Permalink
refactor(plugin-flow-builder): rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
Iru89 committed Mar 20, 2024
1 parent 99fd0d0 commit 78d71f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/botonic-plugin-flow-builder/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,12 @@ export class FlowBuilderApi {
const result = node.content.keywords.find(
keywords =>
keywords.locale === locale &&
this.containsAnyKeywords(input, keywords.values)
this.inputMatchesAnyKeyword(input, keywords.values)
)
return Boolean(result)
}

private containsAnyKeywords(input: string, keywords: string[]): boolean {
private inputMatchesAnyKeyword(input: string, keywords: string[]): boolean {
return keywords.some(keyword => {
const regExpMatchArray = keyword.match(REG_EXP_PATTERN)
if (regExpMatchArray) {
Expand Down

0 comments on commit 78d71f3

Please sign in to comment.