mirror of
https://github.com/miniflux/v2.git
synced 2025-07-22 17:18:37 +00:00
Refactor assets bundler and split Javascript files
This commit is contained in:
parent
e1c56b2e53
commit
53deb0b8cd
49 changed files with 2837 additions and 2000 deletions
11
vendor/github.com/tdewolff/minify/js/js_test.go
generated
vendored
11
vendor/github.com/tdewolff/minify/js/js_test.go
generated
vendored
|
@ -40,6 +40,17 @@ func TestJS(t *testing.T) {
|
|||
{"false\n\"string\"", "false\n\"string\""}, // #109
|
||||
{"`\n", "`"}, // go fuzz
|
||||
{"a\n~b", "a\n~b"}, // #132
|
||||
{"x / /\\d+/.exec(s)[0]", "x/ /\\d+/.exec(s)[0]"}, // #183
|
||||
|
||||
{"function(){}\n`string`", "function(){}\n`string`"}, // #181
|
||||
{"false\n`string`", "false\n`string`"}, // #181
|
||||
{"`string`\nwhatever()", "`string`\nwhatever()"}, // #181
|
||||
|
||||
{"x+/**/++y", "x+ ++y"}, // #185
|
||||
{"x+\n++y", "x+\n++y"}, // #185
|
||||
{"f()/*!com\nment*/g()", "f()/*!com\nment*/g()"}, // #185
|
||||
{"f()/*com\nment*/g()", "f()\ng()"}, // #185
|
||||
{"f()/*!\n*/g()", "f()/*!\n*/g()"}, // #185
|
||||
|
||||
// go-fuzz
|
||||
{`/\`, `/\`},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue