Command line not wrapping

When typing commands in if they get to big then the text is not wrapping to another line. This quickly becomes a problem when trying to type out file paths. The problem is in the .bashrc with the color coding.
The issue is on line 14 in .bashrc:

The bracket is not closed and is a known issue in Ubuntu at least. The fix is to modify the line to:

Adding the ending bracket and putting an escape character in front of it. Problem solved.