Skip to content

Commit

Permalink
text
Browse files Browse the repository at this point in the history
  • Loading branch information
deepumandal committed Aug 4, 2024
1 parent 47a5414 commit 32315f7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/ui/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/* eslint-disable no-unused-vars */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-unused-vars */
function endsWith(x: string, y: string) {
const index = x.lastIndexOf(y);
return x.lastIndexOf(y) === x.length - y.length;

Check failure

Code scanning / CodeQL

Incorrect suffix check High

This suffix check is missing a length comparison to correctly handle lastIndexOf returning -1.
}

export { Block } from "./Block";
export { Container } from "./Container";
export { Flex } from "./Flex";
Expand Down

0 comments on commit 32315f7

Please sign in to comment.