File size: 180 Bytes
b59aa07
 
 
 
 
 
 
1
2
3
4
5
6
7
8
export const sanitizeQuery = (query: string) =>
  query
    .trim()
    .replace(/https?:\/\//, "")
    .replace(/github.com\//, "")
    .replace(/\.git$/, "")
    .toLowerCase();