Skip to content
This repository has been archived by the owner on Mar 19, 2023. It is now read-only.

ErrorException in Minifier.php line 476: Unclosed string at position #69

Open
ghost opened this issue Aug 16, 2015 · 0 comments
Open

ErrorException in Minifier.php line 476: Unclosed string at position #69

ghost opened this issue Aug 16, 2015 · 0 comments

Comments

@ghost
Copy link

ghost commented Aug 16, 2015

Minifier should detect if a file is already minified and just include it without minifying it a second time.

Processing an already minified js file sometimes leads to a:

ErrorException in Minifier.php line 476: Unclosed string at position

This is not really an issue with the minify module itself, but with JSshrink and how it's beeing used. The error is thrown in vendor/tedivm/jshrink/src/JShrink/Minifier.php around line 471:

            // New lines in strings without line delimiters are bad- actual
            // new lines will be represented by the string \n and not the actual
            // character, so those will be treated just fine using the switch
            // block below.
            case "\n":
                throw new \RuntimeException('Unclosed string at position: ' . $startpos );
                break;
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants