Home

tailwind-ctp-intellisense @7235aeab48c5cfcf5a142b36ca2c7b91cb1864f8 - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tailwind-ctp-intellisense / packages / tailwindcss-language-service / src / util / naturalExpand.ts
- raw
1
2
3
4
5
6
7
8
function pad(n: string): string {
  return ('00000000' + n).substr(-8)
}

export function naturalExpand(value: number | string): string {
  let str = typeof value === 'string' ? value : value.toString()
  return str.replace(/\d+/g, pad)
}