One function

JavascriptMinify in tikitu/jsmin

The author described this change as Add fix and test for comment exception case.. It counts as a record because the check below fails on the code as it stood at ddb48af51 and passes on e51b356f2, with nothing else changed between the two runs.

Fix saved2013-10-18
Sharing licenceMIT · LICENSE.txt
Change size+1 1

What the code was meant to do, written into the code itself as a docstring

Minify an input stream of javascript, writing to an output stream

The change

7171 write(last)
7272 break
7373 if doing_multi_comment:
74- if next1 == '*' and next2 == '/':
74+ if next1 == '*' and next2 == '/' and not previous == '/':
7575 doing_multi_comment = False
7676 next2 = read(1)
7777 elif doing_single_comment:

The check that tells the two apart

failpass·jsmin/test.py::JsTests::testBlockCommentStartingWithSlash

Check file jsmin/test.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.

Origin and history

The code before itddb48af51cf436014e93b9bd9cc8038c504abdc8
Broken version dated2013-10-12
Modulejsmin.__init__
Units changedJavascriptMinify
Fingerprint329eb987a84ab259
Checked2026-08-18 by goldset/0.1

Every field above is generated by our program. None of it is written by hand.

Other bugs found in tikitu/jsmin