Skip to content

Commit

Permalink
fixed deepscan issues
Browse files Browse the repository at this point in the history
  • Loading branch information
akanshaaa19 committed Jan 2, 2025
1 parent cc5e856 commit 5b65e56
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/containers/HSM/HSM.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -444,23 +444,6 @@ export const HSM = () => {
setSampleMessages(message);
};

const getTemplate = (text: string) => {
const { body } = sampleMessages;
/**
* Regular expression to check if message contains given pattern
* If pattern is present search will return first index of given pattern
* otherwise it will return -1
*/
const exp = /(\|\s\[)|(\|\[)/;

const areButtonsPresent = body.search(exp);
if (areButtonsPresent > -1) {
const buttons = body.substr(areButtonsPresent);
return text + buttons;
}
return text;
};

const handeInputChange = (event: any, row: any, index: any, eventType: any) => {
const { value } = event.target;
const obj = { ...row };
Expand Down

0 comments on commit 5b65e56

Please sign in to comment.