I use regexpal.com to build my regular expressions and test them and \s wasn't working there for some reason.  I made the change in brackets and it did work so I committed the change.

@RaymondLim This branch has been deleted and the pullreques is closed but I did address your JSDoc comments and the whitespace regex change in the pull request #4890