diff options
author | 2021-09-06 01:20:40 -0700 | |
---|---|---|
committer | 2021-09-06 01:21:55 -0700 | |
commit | 6dc05575a65bf6bdc6f52848d274b1f333a36076 (patch) | |
tree | 12ec4f4a8a469a7d92f2a127ed2e4d34013f6e7c /docs/src/components/Examples/Functions/format-name.js | |
parent | d321d8366b597e46ff8e3fc63d17622a9297505c (diff) | |
download | astro-6dc05575a65bf6bdc6f52848d274b1f333a36076.tar.gz astro-6dc05575a65bf6bdc6f52848d274b1f333a36076.tar.zst astro-6dc05575a65bf6bdc6f52848d274b1f333a36076.zip |
scale back the examples page
Diffstat (limited to 'docs/src/components/Examples/Functions/format-name.js')
-rw-r--r-- | docs/src/components/Examples/Functions/format-name.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/docs/src/components/Examples/Functions/format-name.js b/docs/src/components/Examples/Functions/format-name.js deleted file mode 100644 index 890275c9d..000000000 --- a/docs/src/components/Examples/Functions/format-name.js +++ /dev/null @@ -1,24 +0,0 @@ -import capitalise from './capitalise' - -/** - * - * @param {String} name - * @returns Formats the Template Name - */ -export default function formatName(name){ - return name.includes('multiple') - ? - `${capitalise(name.split('-')[1])} ${capitalise(name.split('-')[0])}'s` - : - name - .split('-') - .map((str)=>( - str.replace('with','') - )) - .map((str)=>( - str.replace('framework','') - )) - .map((str)=>(capitalise(str))) - .join(' ') - .trim() -}
\ No newline at end of file |