question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update Boilerplate Code

See original GitHub issue

Refer to: https://github.com/freeCodeCamp/boilerplate-project-issuetracker/pull/15#discussion_r518700511

The following boilerplates use the assertion-analyser.js which needs to be updated per the above comment. The code in question should be on lines 66-69:

  while(obj = objParser(str)) {
    data[cnt] = obj.obj;
    str = str.substring(0, obj.start) + '__#' + cnt++ + str.substring(obj.end+1)
  }

And should be replaced with @ojeytonwilliams’ suggestion:

let obj = objParser(str);
while(obj) {
  data[cnt] = obj.obj;
  str = str.substring(0, obj.start) + '__#' + cnt++ + str.substring(obj.end+1);
  obj = objParser(str);
}

The following boilerplates use this code:

The corresponding demo-projects will also need the update, it seems.

/cc @RandellDawson @raisedadead

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
RandellDawsoncommented, Nov 6, 2020

Before anyone creates a PR, we should discuss if a package would be better that could be imported to each of the boilerplates instead.

0reactions
moT01commented, Aug 10, 2021

Thank you for reporting this issue.

This is a standard message notifying you that the issue has become stale, so we are going to close it.

If you think we’re wrong in closing this issue, please request for it to be reopened. Thank you and happy coding.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Update boilerplate code between versions - GitHub
Update boilerplate code between versions. Contribute to kellyselden/boilerplate-update development by creating an account on GitHub.
Read more >
boilerplate-update - npm
Update boilerplate code between versions. ... Start using boilerplate-update in your project by running `npm i boilerplate-update`.
Read more >
Boilerplate code - Wikipedia
In computer programming, boilerplate code, or simply boilerplate, are sections of code that are repeated in multiple places with little to no variation....
Read more >
How to create the boilerplate code in VS Code?
Open your VS Code and click on the settings button in the bottom-left corner. · Click on User Snippets. · You'll see a...
Read more >
What is boilerplate and why do we use it ... - freeCodeCamp
It is often used when referring to languages that are considered verbose, i.e. the programmer must write a lot of code to do...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found