preprocess icon indicating copy to clipboard operation
preprocess copied to clipboard

Error when parsing the `U+FEFF` character

Open gxxcastillo opened this issue 11 years ago • 0 comments

I'm downloading a 3rd party file that has a funky character in it (I think it's the U+FEFF character - it is in the js file from this project) and then running preprocess on it. My preprocessor script looks something like this:

define(['jquery'], function ($) {
    /* @include path/to/my/file.js */
});

The resulting file ends up with an "unsafe character" which then causes jshint (and buster-coverage) to puke :P However, the original file does not show the "unsafe character" error.

Would be great if preprocessor could recognize the character and know what to do with it.

(I actually know next to nothing about this stuff but came across this as I was debugging some errors in the application I'm working on. See http://en.wikipedia.org/wiki/Zero-width_no-break_space)

Thanks!

gxxcastillo avatar Jul 01 '14 16:07 gxxcastillo