From 9ccf4e493cada686b1daafa074a6fbd2fe0605d8 Mon Sep 17 00:00:00 2001 From: Evan Moore Date: Sat, 26 Mar 2016 21:34:30 -0600 Subject: [PATCH] replace all instances of 'cypher' with 'cipher' --- encryptallthings.js | 2 +- exercises/{caeser_cypher => caesar_cipher}/exercise.js | 0 exercises/{caeser_cypher => caesar_cipher}/problem.md | 0 .../{caeser_cypher => caesar_cipher}/solution/solution.js | 4 ++-- 4 files changed, 3 insertions(+), 3 deletions(-) rename exercises/{caeser_cypher => caesar_cipher}/exercise.js (100%) rename exercises/{caeser_cypher => caesar_cipher}/problem.md (100%) rename exercises/{caeser_cypher => caesar_cipher}/solution/solution.js (88%) diff --git a/encryptallthings.js b/encryptallthings.js index f5dafb6..bdabdea 100644 --- a/encryptallthings.js +++ b/encryptallthings.js @@ -6,7 +6,7 @@ const workshop = require('workshopper-adventure')({ }) workshop.addAll([ - 'CAESER_CYPHER' + 'CAESAR_CIPHER' ]) module.exports = workshop diff --git a/exercises/caeser_cypher/exercise.js b/exercises/caesar_cipher/exercise.js similarity index 100% rename from exercises/caeser_cypher/exercise.js rename to exercises/caesar_cipher/exercise.js diff --git a/exercises/caeser_cypher/problem.md b/exercises/caesar_cipher/problem.md similarity index 100% rename from exercises/caeser_cypher/problem.md rename to exercises/caesar_cipher/problem.md diff --git a/exercises/caeser_cypher/solution/solution.js b/exercises/caesar_cipher/solution/solution.js similarity index 88% rename from exercises/caeser_cypher/solution/solution.js rename to exercises/caesar_cipher/solution/solution.js index fc5afa7..a07d0d8 100644 --- a/exercises/caeser_cypher/solution/solution.js +++ b/exercises/caesar_cipher/solution/solution.js @@ -1,6 +1,6 @@ var arg = process.argv[2]; -function caesarCypher(text, shift) { +function caesarCipher(text, shift) { if (shift < 0) return caeserShift(str, shift + 26); @@ -24,5 +24,5 @@ function caesarCypher(text, shift) { return output; } -var result = caesarCypher(arg, 4); +var result = caesarCipher(arg, 4); console.log(result);