null is not an object (evaluating 'editor.match(/
Challenge http://www.freecodecamp.com/challenges/waypoint-override-class-declarations-with-inline-styles has an issue. Please describe how to reproduce it, and include links to screenshots if possible.
Getting an issue if you only have style="" typed into the editor once you add the style the error disappears.
Hey @RobinsonKameron I was able to replicate but I'm not really sure what we can do about this....
I'll keep this open for now.
When i used style="color : white" (space on either side of colon), i got the editor.match(...) error. I removed the spaces to look like this style:"color:white" (without spaces) and the error disappeared. Hope this helps.
I believe that the issue is that the space before the colon is making the test fail.
@benschenker you are right. There are many challenges where camper fails to pass the test because of a space. or a new line character. To avoid issues like this we need to go through all challenges and extend tests so they'll actually allow any whitespaces which is a hard work. This work actually had to be done by the creator of this challenges.
Also: 'null is not an object' error is caused by editor.match(/<h1.*style.*color:/gi).length > 0 parameter. If you remove length > 0 the object will be still null (I think so) but this error won't show up.
@TiffanyECook this seems to be a separate issue. Feel free to open a new issue about this.