Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@joshjohanning
Created January 13, 2022 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshjohanning/0887a010c03ca9bb87a9df6927fd7fe0 to your computer and use it in GitHub Desktop.
Save joshjohanning/0887a010c03ca9bb87a9df6927fd7fe0 to your computer and use it in GitHub Desktop.
introduce code vulnerability in ghas
function endsWith(x,y) {
let index = x.lastIndexOf(y);
return x.lastIndexOf(y) === x.length - y.length;
}
// comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment