freeCodeCamp
freeCodeCamp copied to clipboard
fix(curriculum): intermediate regex matches only complete solution
Checklist:
- [x] I have read and followed the contribution guidelines.
- [x] I have read and followed the how to open a pull request guide.
- [x] My pull request targets the
mainbranch of freeCodeCamp. - [x] I have tested these changes either locally on my machine, or GitPod.
- Fixes early test not passing until solution is complete. Hiding other hints/tests from camper. https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/learn-basic-algorithmic-thinking-by-building-a-number-sorter/step-19
if (array[j] > array[j + 1]) {
const temp = array[j];
}