-
-
Notifications
You must be signed in to change notification settings - Fork 125
fix(challenges): update regular expression that fails #56
Conversation
Changes regular expression in testString to remove negative look behind that is not implemented across all browsers. ISSUES CLOSED: freeCodeCamp#55
@raisedadead @scissorsneedfoodtoo Here is the new issue & PR duplicating what we did over on |
@matthew-t-smith, thank you for moving your PR to this repo! I'm sorry, there's just one thing I noticed. Not sure why, but a lot of the spacing was added to the tests objects. Maybe one of the tests or a linter added all of these line breaks? Unfortunately, I'm not sure if we can merge this as the formatting is quite a bit different than the other seed files. This isn't the challenge you're updating, but here's an example of the format for the tests.
Would you be able to update this pull request so that the tests look like the one above, without all of the line breaks? |
It is definitely something to do with a linter. I re-ran the `npm run commit` in my own environment and watched the line spacing jump. Should probably be checked if it ends up happening to others. However, this should fix it all for this PR!
@scissorsneedfoodtoo I just updated removing all the line breaks. It was happening during the However, now my Travis CI has 1 failing check. I'll look into this evening. |
@matthew-t-smith, you're right, I checked on my local machine and the same happens automatically. I checked some other challenge files and you're right--shorter titles and test strings are all on the same line. Sorry about that! Didn't realize until now. Could you roll back to your previous commit, or just run |
We have turned on prettier formatting. Its worth investigating if this is okay or not for certain files. Is the spacing an issue on the final outputs? |
@raisedadead, good point. Seems like a lot of the basic Javascript challenges were formatted that way. I can take a quick look and see if the spacing is an issue before @matthew-t-smith makes any further changes. |
@raisedadead, I checked out a handful of challenges with the new prettier formatting and it doesn't seem to affect the final output at all--the pages over on Learn look as they should. @matthew-t-smith, could you go back the initial formatting you had? Sorry again for all the trouble! |
Reverting back to pretty formatting from commit.
@scissorsneedfoodtoo This should be back to what the initial commit showed - added line spacing from the prettier formatting but with the regex changed. |
@matthew-t-smith, awesome! That was so fast. Thank you again for making all of these changes and going back and forth like that. Everything LGTM 👍 |
* fix(challenges): update regular expression that fails Changes regular expression in testString to remove negative look behind that is not implemented across all browsers. ISSUES CLOSED: #55 * Fixed line spacing It is definitely something to do with a linter. I re-ran the `npm run commit` in my own environment and watched the line spacing jump. Should probably be checked if it ends up happening to others. However, this should fix it all for this PR! * Back to `prettier` formatting Reverting back to pretty formatting from commit.
* fix(challenges): update regular expression that fails Changes regular expression in testString to remove negative look behind that is not implemented across all browsers. ISSUES CLOSED: #55 * Fixed line spacing It is definitely something to do with a linter. I re-ran the `npm run commit` in my own environment and watched the line spacing jump. Should probably be checked if it ends up happening to others. However, this should fix it all for this PR! * Back to `prettier` formatting Reverting back to pretty formatting from commit.
* fix(challenges): update regular expression that fails Changes regular expression in testString to remove negative look behind that is not implemented across all browsers. ISSUES CLOSED: #55 * Fixed line spacing It is definitely something to do with a linter. I re-ran the `npm run commit` in my own environment and watched the line spacing jump. Should probably be checked if it ends up happening to others. However, this should fix it all for this PR! * Back to `prettier` formatting Reverting back to pretty formatting from commit.
# [3.0.0](v2.0.0...v3.0.0) (2018-06-29) ### Bug Fixes * **challenge:** Fixed the typo for automatically ([#48](#48)) ([dd046d6](dd046d6)) * **challenge:** Updated tests to avoid confusion ([#57](#57)) ([7105507](7105507)) * **challenges:** change test for template literals challenge ([#37](#37)) ([4b1c5eb](4b1c5eb)) * **challenges:** cherry pick pr 17664 & 17672 from main repo ([#52](#52)) ([2375d0c](2375d0c)) * **challenges:** fixed telephone number validator project ([#53](#53)) ([2b034e2](2b034e2)), closes [#47](#47) * **challenges:** fixed typo in css-grid.json ([#46](#46)) ([e74192e](e74192e)) * **challenges:** grammar fix in css-grid auto-fit challenge ([#60](#60)) ([a6a0266](a6a0266)) * **challenges:** Typo errors ([#39](#39)) ([0c0702d](0c0702d)) * **challenges:** update regular expression that fails ([#56](#56)) ([9fa5907](9fa5907)), closes [#55](#55) ### BREAKING CHANGES * **challenges:** None
# [3.0.0](v2.0.0...v3.0.0) (2018-06-29) ### Bug Fixes * **challenge:** Fixed the typo for automatically ([#48](#48)) ([dd046d6](dd046d6)) * **challenge:** Updated tests to avoid confusion ([#57](#57)) ([7105507](7105507)) * **challenges:** change test for template literals challenge ([#37](#37)) ([4b1c5eb](4b1c5eb)) * **challenges:** cherry pick pr 17664 & 17672 from main repo ([#52](#52)) ([2375d0c](2375d0c)) * **challenges:** fixed telephone number validator project ([#53](#53)) ([2b034e2](2b034e2)), closes [#47](#47) * **challenges:** fixed typo in css-grid.json ([#46](#46)) ([e74192e](e74192e)) * **challenges:** grammar fix in css-grid auto-fit challenge ([#60](#60)) ([a6a0266](a6a0266)) * **challenges:** Typo errors ([#39](#39)) ([0c0702d](0c0702d)) * **challenges:** update regular expression that fails ([#56](#56)) ([9fa5907](9fa5907)), closes [#55](#55) ### BREAKING CHANGES * **challenges:** None
* fix(challenges): update regular expression that fails Changes regular expression in testString to remove negative look behind that is not implemented across all browsers. ISSUES CLOSED: freeCodeCamp#55 * Fixed line spacing It is definitely something to do with a linter. I re-ran the `npm run commit` in my own environment and watched the line spacing jump. Should probably be checked if it ends up happening to others. However, this should fix it all for this PR! * Back to `prettier` formatting Reverting back to pretty formatting from commit.
# [3.0.0](freeCodeCamp/curriculum@v2.0.0...v3.0.0) (2018-06-29) ### Bug Fixes * **challenge:** Fixed the typo for automatically ([freeCodeCamp#48](freeCodeCamp#48)) ([dd046d6](freeCodeCamp@dd046d6)) * **challenge:** Updated tests to avoid confusion ([freeCodeCamp#57](freeCodeCamp#57)) ([7105507](freeCodeCamp@7105507)) * **challenges:** change test for template literals challenge ([freeCodeCamp#37](freeCodeCamp#37)) ([4b1c5eb](freeCodeCamp@4b1c5eb)) * **challenges:** cherry pick pr 17664 & 17672 from main repo ([freeCodeCamp#52](freeCodeCamp#52)) ([2375d0c](freeCodeCamp@2375d0c)) * **challenges:** fixed telephone number validator project ([freeCodeCamp#53](freeCodeCamp#53)) ([2b034e2](freeCodeCamp@2b034e2)), closes [freeCodeCamp#47](freeCodeCamp#47) * **challenges:** fixed typo in css-grid.json ([freeCodeCamp#46](freeCodeCamp#46)) ([e74192e](freeCodeCamp@e74192e)) * **challenges:** grammar fix in css-grid auto-fit challenge ([freeCodeCamp#60](freeCodeCamp#60)) ([a6a0266](freeCodeCamp@a6a0266)) * **challenges:** Typo errors ([freeCodeCamp#39](freeCodeCamp#39)) ([0c0702d](freeCodeCamp@0c0702d)) * **challenges:** update regular expression that fails ([freeCodeCamp#56](freeCodeCamp#56)) ([9fa5907](freeCodeCamp@9fa5907)), closes [freeCodeCamp#55](freeCodeCamp#55) ### BREAKING CHANGES * **challenges:** None
Changes regular expression in testString to remove negative look behind that is not implemented
across all browsers.
ISSUES CLOSED: #55
Pre-Submission Checklist
staging
branch of freeCodeCamp.Targets new
dev
branch of curriculumfix/
,feature/
, ortranslate/
(e.g.fix/signin-issue
)npm test
. Usegit commit --amend
to amend any fixes.Type of Change
Checklist:
Closes #55
freeCodeCamp/freeCodeCamp#17387
Description
This replicates a PR that was closed on freeCodeCamp (noted in the Issue #55 ) in order to remove a negative look behind used in the regular expression in a test. This is not fully implemented in Firefox yet, but the new expression should take care of the testing as it should.