Skip to content

Commit

Permalink
fix: spellings which are making ci fail (TheAlgorithms#1089)
Browse files Browse the repository at this point in the history
* Updated Documentation in README.md

* chore: remove wrong spelling

* ci: recognize "falsy" as correct spelling

* chore: fix spelling

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
  • Loading branch information
raklaptudirm and github-actions authored Sep 5, 2022
1 parent a133529 commit ad41e8c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ jobs:
with:
# file types to ignore
skip: "*.json,*.yml,DIRECTORY.md"
ignore_words_list: "ba,esy,yse"
ignore_words_list: "ba,esy,yse,falsy"
1 change: 1 addition & 0 deletions DIRECTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@
* [IsEven](Maths/IsEven.js)
* [IsOdd](Maths/IsOdd.js)
* [IsPronic](Maths/IsPronic.js)
* [JugglerSequence](Maths/JugglerSequence.js)
* [LeapYear](Maths/LeapYear.js)
* [LinearSieve](Maths/LinearSieve.js)
* [LucasSeries](Maths/LucasSeries.js)
Expand Down
2 changes: 1 addition & 1 deletion Maths/PiApproximationMonteCarlo.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const piEstimation = (iterations = 100000) => {
if (radius < 1) circleCounter += 1
}

// fomula for pi = (ratio of number inside circle and total iteration) x 4
// formula for pi = (ratio of number inside circle and total iteration) x 4
const pi = (circleCounter / iterations) * 4
return pi
}
Expand Down
1 change: 0 additions & 1 deletion String/CheckAnagram.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const checkAnagramRegex = (str1, str2) => {
/**
* str1 converted to an array and traverse each letter of str1 by reduce method
* reduce method return string which is empty or not.
* if it returns empty string '' -> falsy, with Logical !(NOT) Operator, it's will be converted to boolean and return true else false
*/
return ![...str1].reduce(
(str2Acc, cur) => str2Acc.replace(new RegExp(cur, 'i'), ''), // remove the similar letter from str2Acc in case-insensitive
Expand Down

0 comments on commit ad41e8c

Please sign in to comment.