1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

refactor code duplication

This commit is contained in:
yosmoc
2018-05-12 23:58:15 +02:00
parent 67bba043ed
commit 7e1596de30
4 changed files with 20 additions and 48 deletions

View File

@@ -0,0 +1,14 @@
export default function convertModeName (name) {
switch (name) {
case 'ejs':
return 'Embedded Javascript'
case 'html_ruby':
return 'Embedded Ruby'
case 'objectivec':
return 'Objective C'
case 'text':
return 'Plain Text'
default:
return name
}
}