Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the JavaScript-Packer CPAN distribution.

Report information
The Basics
Id: 49982
Status: resolved
Priority: 0/
Queue: JavaScript-Packer

People
Owner: NEVESENIN [...] cpan.org
Requestors: WMCKEE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 0.02
  • 0.01
  • 0.0101
  • 0.0102
  • 0.01_01
  • 0.01_02
Fixed in:
  • 0.03_01
  • 0.03_02
  • 0.04



Subject: Packing JQuery script fails
Hi Merten, I'm using your packer with the Jquery library. The following errors are being reported when packing one of the files (see attached): Backslash found where operator expected at (eval 4) line 1, near "q/\/^(https?|ftp):\\\/\\\/(((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\q/ \" String found where operator expected at (eval 4) line 1, at end of line (Missing operator before '\\(\\)\\*\\+,;=]|:)*@)?(((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5]))|((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)+(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.?)(:\\d*)?)(\\\/((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\q/ \/^(https?|ftp):\\\/\\\/(((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'?) Backslash found where operator expected at (eval 4) line 1, near "\" (Missing operator before \?) Backslash found where operator expected at (eval 4) line 1, near ")\" (Missing operator before \?) Backslash found where operator expected at (eval 4) line 1, near "*\\" (Missing operator before \?) I'm using perl v5.8.8. I've attached a test script and the input file which you can use to try to replicate the above errors. Thanks, William -- Knowmad Technologies http://www.knowmad.com
Subject: jquery.validate.js.snpt
Download jquery.validate.js.snpt
application/octet-stream 35.3k

Message body not shown because it is not plain text.

Subject: packer.t
use JavaScript::Packer; my $file = 'jquery.validate.js.snpt'; die 'file not found' unless -e $file; open (DATA, $file) or die "died while reading $file; $!"; my $javascript = do { local $/, <DATA> }; close DATA; my $packed = $javascript; JavaScript::Packer::minify( \$packed, { compress => "shrink", }); #print $packed; print "Done!\n";
Subject: Re: [rt.cpan.org #49982] Packing JQuery script fails
Date: Sun, 4 Oct 2009 14:02:20 +0200
To: bug-JavaScript-Packer [...] rt.cpan.org
From: Merten Falk <neves-enin [...] gmx.net>
Hi William, thank you for reporting that. I uploaded JavaScript::Packer version 0.03_01. I testet compressing the JQuery snippet and it works without errors. It would be great if you could tell me if it works for you. TIA Merten Am Thursday 24 September 2009 20:26:03 schrieb William McKee via RT: Show quoted text
> Thu Sep 24 14:26:01 2009: Request 49982 was acted upon. > Transaction: Ticket created by WMCKEE > Queue: JavaScript-Packer > Subject: Packing JQuery script fails > Broken in: 0.02 > Severity: Normal > Owner: Nobody > Requestors: WMCKEE@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=49982 > > > > Hi Merten, > > I'm using your packer with the Jquery library. The following errors are > being reported when packing one of the files (see attached): > > Backslash found where operator expected at (eval 4) line 1, near > "q/\/^(https?|ftp):\\\/\\\/(((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900- >\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\q/ \" > String found where operator expected at (eval 4) line 1, at end of line > (Missing operator before > '\\(\\)\\*\\+,;=]|:)*@)?(((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[ >1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5] >)\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5]))|((([a-z]|\\d|[\\u00A0-\\uD7FF\ >\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\ >\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0- >\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)+ >(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\ >uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\ >uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0 >-\\uFFEF])))\\.?)(:\\d*)?)(\\\/((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF90 >0-\\uFDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\q/ > \/^(https?|ftp):\\\/\\\/(((([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\u >FDCF\\uFDF0-\\uFFEF])|(%[\\da-f]{2})|[!\\$&'?) Backslash found where > operator expected at (eval 4) line 1, near "\" (Missing operator before \?) > Backslash found where operator expected at (eval 4) line 1, near ")\" > (Missing operator before \?) > Backslash found where operator expected at (eval 4) line 1, near "*\\" > (Missing operator before \?) > > > > I'm using perl v5.8.8. I've attached a test script and the input file > which you can use to try to replicate the above errors. > > > Thanks, > William
Hi Merten, Thanks for the quick fix to the bug report. Your new version works for me. When do you expect to release that so we can get it incorporated into our CMS (WebGUI)? William -- Knowmad Technologies http://www.knowmad.com