Support » Plugin: Fast Velocity Minify » Issue with javascript regex containing //

  • Resolved Mircea Tihu

    (@sticksu)



    Hey,

    There is a issue with PHP Minify when // is used in a regex – it treats it as a comment and it remove the rest of the line after //.
    Our specific issue is with “$export.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(userAgent)”, when this is minified the “//.test(userAgent)” is removed since it treats it as a comment.

    The issue was reported and solved by mathiasmullie: https://github.com/matthiasmullie/minify/commit/a85f804092715b0d221c281272df742f55e660f0

    Could you please update the version of PHP Minify used in the plugin?

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.