Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

match[2] is undefined for metadata with no value #1391

Closed
alesadam opened this issue Aug 9, 2011 · 1 comment
Closed

match[2] is undefined for metadata with no value #1391

alesadam opened this issue Aug 9, 2011 · 1 comment
Milestone

Comments

@alesadam
Copy link

alesadam commented Aug 9, 2011

In previous versions one could add 'empty' metadata headers:

// @copyright   2009-2011 Alesa Dam
// @license GPL v3+
// @licstart    The following is the entire license notice for this script.
/*
 * Copyright (C) 2009-2011 Alesa Dam
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details 
 * at <http://www.gnu.org/licenses/>.
 */
// @licend
//
// ==/UserScript==

version 0.9.7 errors out on the empty @LicenD, while previous versions did not

The error in the console reads:
match[2] is undefined chrome://greasemonkey/content/config.js Line: 158

@alesadam
Copy link
Author

alesadam commented Aug 9, 2011

A workaround is simple enough:
// @licend End of license

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants