Skip to content

Commit

Permalink
corrected lousy renamer
Browse files Browse the repository at this point in the history
  • Loading branch information
rgrannell1 committed Feb 10, 2016
1 parent 872ca3b commit f7f441c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 25 deletions.
22 changes: 0 additions & 22 deletions src/app/convert-to-linux-scheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,6 @@

const constants = require('../commons/constants')

/*
echo -en "\e]P0232323" #black
echo -en "\e]P82B2B2B" #darkgrey
echo -en "\e]P1D75F5F" #darkred
echo -en "\e]P9E33636" #red
echo -en "\e]P287AF5F" #darkgreen
echo -en "\e]PA98E34D" #green
echo -en "\e]P3D7AF87" #brown
echo -en "\e]PBFFD75F" #yellow
echo -en "\e]P48787AF" #darkblue
echo -en "\e]PC7373C9" #blue
echo -en "\e]P5BD53A5" #darkmagenta
echo -en "\e]PDD633B2" #magenta
echo -en "\e]P65FAFAF" #darkcyan
echo -en "\e]PE44C9C9" #cyan
echo -en "\e]P7E5E5E5" #lightgrey
echo -en "\e]PFFFFFFF" #white
clear #for background artifacting
*/




Expand Down
3 changes: 1 addition & 2 deletions src/app/set-scheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@



const exec = require('child_process').exec
const childProcess = require('child_process')

const constants = require('../commons/constants')
const parseSchemes = require('../app/parse-schemes')
Expand All @@ -26,7 +26,6 @@ const setScheme = args => {
})[0]

const script = convertToLinuxScheme(scheme)

console.log(script)

}
Expand Down
4 changes: 3 additions & 1 deletion src/commons/commons.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ commons.normaliseName = name => {

appended = '-'

} else if (lastLowerCase && char === char.toUpperCase( )) {
} else if (lastLowerCase && char !== char.toLowerCase( )) {

// if the last char was lowerser case, and the current isn't, add a dash if there isn't one already.

appended = chars.slice(-1)[0] === '-'
? char.toLowerCase( )
Expand Down

0 comments on commit f7f441c

Please sign in to comment.