Skip to content

Commit

Permalink
fix some typos (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
iArmanKarimi authored Aug 23, 2020
1 parent 0331e4b commit 3f3e8e3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions browser.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import baloon from "./lib/balloon";
import balloon from "./lib/balloon";
import replacer from "./lib/replacer";
import faces from "./lib/faces";

Expand Down Expand Up @@ -195,7 +195,7 @@ export { default as YASUNA_20 } from '.cows/yasuna_20.cow';
export { default as YMD_UDON } from '.cows/ymd_udon.cow';
export { default as ZEN_NOH_MILK } from '.cows/zen-noh-milk.cow';

function converToCliOptions(browserOptions) {
function convertToCliOptions(browserOptions) {
const cliOptions = {
e: browserOptions.eyes || 'oo',
T: browserOptions.tongue || ' ',
Expand All @@ -218,13 +218,13 @@ function doIt (options, sayAloud) {
face.thoughts = sayAloud ? "\\" : "o";

const action = sayAloud ? "say" : "think";
return baloon[action](options.text || options._.join(" "), options.n ? null : options.W) + "\n" + replacer(cow, face);
return balloon[action](options.text || options._.join(" "), options.n ? null : options.W) + "\n" + replacer(cow, face);
}

export function say(browserOptions) {
return doIt(converToCliOptions(browserOptions), true);
return doIt(convertToCliOptions(browserOptions), true);
}

export function think(browserOptions) {
return doIt(converToCliOptions(browserOptions), false);
return doIt(convertToCliOptions(browserOptions), false);
}
2 changes: 1 addition & 1 deletion cows/USA.cow
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $the_cow = <<EOC;
|* * * * * * * * * * OOOOOOOOOOOOOOOOOOOOOOOOO|
| * * * * * * * * * :::::::::::::::::::::::::|
|* * * * * * * * * * OOOOOOOOOOOOOOOOOOOOOOOOO|
| * * * * * * * * * ::::::::::::::::::::;::::|
| * * * * * * * * * :::::::::::::::::::::::::|
|* * * * * * * * * * OOOOOOOOOOOOOOOOOOOOOOOOO|
|:::::::::::::::::::::::::::::::::::::::::::::|
|OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO|
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var baloon = require("./lib/balloon");
var balloon = require("./lib/balloon");
var cows = require("./lib/cows");
var faces = require("./lib/faces");

Expand Down Expand Up @@ -27,5 +27,5 @@ function doIt (options, sayAloud) {
face.thoughts = sayAloud ? "\\" : "o";

var action = sayAloud ? "say" : "think";
return baloon[action](options.text || options._.join(" "), options.n ? null : options.W) + "\n" + cow(face);
return balloon[action](options.text || options._.join(" "), options.n ? null : options.W) + "\n" + cow(face);
}

0 comments on commit 3f3e8e3

Please sign in to comment.