Skip to content Skip to sidebar Skip to footer

Rails Asset Pipeline Js Compression Inserting "illegal Characters"

I just asked a question about an 'Illegal Character' in my javascript. The answer there led me to find that there is a problem with compressing javascript in the Rails asset pipel

Solution 1:

It seems as though you're using \b in some of your JavaScript regex, which I believe isn't supported. Try replacing \b with \u0008, E.x.

string.replace(/\u0008/g, '\\b')

Post a Comment for "Rails Asset Pipeline Js Compression Inserting "illegal Characters""