| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
It is similar to eval(). See,
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/Function
As a prior art, another extension did the blank ban of Function():
https://addons.mozilla.org/en-US/firefox/addon/noeval-disable-eval/
So let's ban it as well.
Bug reported at
https://lists.gnu.org/archive/html/bug-librejs/2023-09/msg00000.html
|
|
|
|
| |
and reuse it in the manual
|
|
|
|
|
|
|
| |
- trailing whitespace, including newlines are consumed by the opneing
regex (added a test case)
- added a test case for /* @license ... */ ... /* @license-end */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Otherwise the following will be processed for @license / @license-end
method:
// foo.js
// // @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-3.0
// document.getElementById('bar');
// // @license-end
function foo(x, y) {
console.log(x + y);
}
$ node ./utitlities/check-script foo.js
[
true,
'// // @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-3.0\n' +
"// document.getElementById('bar');\n" +
'// // @license-end\n' +
'function foo(x, y) {\n' +
' console.log(x + y);\n' +
'}\n',
'\n' +
'Recognized license: "GNU General Public License (GPL) version 3".\n' +
'Script appears to be trivial.'
]
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
bug effect: no default subject and body shown for prefs
|
| |
|
| |
|
| |
|
|
|
|
|
| |
- eslint
- also adding eslintrc
|
|
|
|
|
|
|
|
| |
- ran eglot-format using typescript-language-server on all js files in
the repo except those under /hash_script/
- verify only whitespace changed:
git diff --word-diff-regex=. 62d6a71 62d6a71~1
|
| |
|
| |
|
| |
|
| |
|
|
the settings page in the xpi release.
|