Skip to content

Commit ad41e8c

Browse files
raklaptudirmgithub-actions
and
github-actions
authored
fix: spellings which are making ci fail (TheAlgorithms#1089)
* 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>
1 parent a133529 commit ad41e8c

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

.github/workflows/Ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ jobs:
3535
with:
3636
# file types to ignore
3737
skip: "*.json,*.yml,DIRECTORY.md"
38-
ignore_words_list: "ba,esy,yse"
38+
ignore_words_list: "ba,esy,yse,falsy"

DIRECTORY.md

+1
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@
170170
* [IsEven](Maths/IsEven.js)
171171
* [IsOdd](Maths/IsOdd.js)
172172
* [IsPronic](Maths/IsPronic.js)
173+
* [JugglerSequence](Maths/JugglerSequence.js)
173174
* [LeapYear](Maths/LeapYear.js)
174175
* [LinearSieve](Maths/LinearSieve.js)
175176
* [LucasSeries](Maths/LucasSeries.js)

Maths/PiApproximationMonteCarlo.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const piEstimation = (iterations = 100000) => {
1313
if (radius < 1) circleCounter += 1
1414
}
1515

16-
// fomula for pi = (ratio of number inside circle and total iteration) x 4
16+
// formula for pi = (ratio of number inside circle and total iteration) x 4
1717
const pi = (circleCounter / iterations) * 4
1818
return pi
1919
}

String/CheckAnagram.js

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ const checkAnagramRegex = (str1, str2) => {
2222
/**
2323
* str1 converted to an array and traverse each letter of str1 by reduce method
2424
* reduce method return string which is empty or not.
25-
* if it returns empty string '' -> falsy, with Logical !(NOT) Operator, it's will be converted to boolean and return true else false
2625
*/
2726
return ![...str1].reduce(
2827
(str2Acc, cur) => str2Acc.replace(new RegExp(cur, 'i'), ''), // remove the similar letter from str2Acc in case-insensitive

0 commit comments

Comments
 (0)