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

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

Description

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions