Regex for matching and parsing copyright statements.
Install
Install with npm:$ npm install --save copyright-regex
Usage
var regex = require('copyright-regex');
var str = 'abc\nCopyright (c) 2013-2015, 2016, Jon Schlinkert.\nxyz';
var matches = str.match(regex());
// matches[0] => 'Copyright (c) 2013-2015, 2016, Jon Schlinkert'
// matches[1] => 'Copyright'
// matches[2] => '(c)'
// matches[3] => '2013-2015, 2016, '
// matches[4] => '2016'
// matches[5] => 'Jon Schlinkert'
About
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.Contributors
| Commits | Contributor| | --- | --- | | 18 | jonschlinkert | | 1 | arthurvr | | 1 | tunnckoCore | | 1 | pdehaan |
Building docs
(This document was generated by verb-generate-readme (a verb generator), please don't edit the readme directly. Any changes to the readme must be made in .verb.md.)To generate the readme and API documentation with verb:
$ npm install -g verb verb-generate-readme && verb
Running tests
Install dev dependencies:$ npm install -d && npm test
Author
Jon SchlinkertLicense
Copyright © 2016, Jon Schlinkert. Released under the MIT license.This file was generated by verb-generate-readme, v0.2.0, on December 07, 2016.