Extendy / SmartyURL

SmartyURL is a PHP-based web application for Smart URL management, Sharing, shortening, and analytics, featuring smart redirects.
https://docs.smartyurl.extendy.net/
MIT License
12 stars 2 forks source link

Comment Lines // in JavaScript Not Removed When Minifying #72

Open mshannaq opened 1 year ago

mshannaq commented 1 year ago

When the smartyurl.minifyHtmloutput setting is enabled (set to true), comment lines in JavaScript code that use // are not removed during the minification process. For example:

This can result in errors in the JavaScript code.

Suggested Solution:

If you're a SmartyURL developer or creating tools and UI for SmartyURL, we recommend using / / for comments in JavaScript output instead of // while we address this issue. This ensures proper comment handling during the minification process.

We appreciate your understanding, and we'll address this issue in an upcoming update.