Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | changing license definition to json | Yuchen Pei | 2022-10-13 | 1 | -1/+1 |
| | | | | and reuse it in the manual | ||||
* | fixing a few problems with @license / @license-end regexes | Yuchen Pei | 2022-10-13 | 1 | -11/+24 |
| | | | | | | | - trailing whitespace, including newlines are consumed by the opneing regex (added a test case) - added a test case for /* @license ... */ ... /* @license-end */ | ||||
* | `// @license` should be at the beginning of a line (mod whitespace) | Yuchen Pei | 2022-10-13 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.' ] | ||||
* | fixing a typo | Yuchen Pei | 2022-09-23 | 1 | -1/+1 |
| | |||||
* | typos | Yuchen Pei | 2022-09-23 | 1 | -1/+1 |
| | |||||
* | move fname_data.json to common | Yuchen Pei | 2022-09-22 | 1 | -1/+1 |
| | |||||
* | Separating out script and license checking routines to common/checks | Yuchen Pei | 2022-09-22 | 1 | -7/+352 |
| | |||||
* | moving some modules to common/ | Yuchen Pei | 2022-09-22 | 1 | -0/+90 |