Skip to content

Commit 73bf9d7

Browse files
committed
[Bug fix] Escape emails in authorship regexes
1 parent 78c89d3 commit 73bf9d7

File tree

9 files changed

+394
-234
lines changed

9 files changed

+394
-234
lines changed

.github/img/nvim_043_ver_030.gif

-320 KB
Binary file not shown.

.github/img/nvim_043_ver_031.gif

328 KB
Loading

CHANGELOG.md

Lines changed: 0 additions & 73 deletions
This file was deleted.

CHANGELOG.rst

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
#########
2+
CHANGELOG
3+
#########
4+
5+
.. contents:: **Releases**
6+
:depth: 1
7+
:backlinks: top
8+
9+
0.3.1
10+
======
11+
**(2020-10-26)**
12+
13+
Changed
14+
-------
15+
- use reStructuredText in project documentation
16+
17+
Fixed
18+
-----
19+
- call ``re.escape()`` on emails when searching authorship templates in case
20+
they contain regex symbols, e.g. ``[email protected]``
21+
22+
23+
0.3.0
24+
======
25+
**(2020-10-12)**
26+
27+
Changed
28+
-------
29+
- options that were prefixed with ``cpywrite_`` now start with ``cpywrite#``;
30+
this will allow future options to be loaded from the ``autoload`` directory
31+
32+
- licenses are now identified by full name when there's no standard header
33+
34+
.. _configure vim to wrap lines:
35+
36+
**Note.** To keep longer names like (e.g.) the ``LGPLvX.X`` from running off
37+
the screen, enable line wrapping in your ``vimrc`` or ``init.vim``:
38+
39+
.. code-block:: vim
40+
41+
set lbr
42+
set tw=500 "break after 500 characters
43+
set wrap "wrap lines
44+
45+
Added
46+
-----
47+
- HTTP responses are now `cached`_ in the user's temp directory
48+
- the option to hide the current buffer's name in license headers by setting
49+
``g:cpywrite#hide_filename`` to a non-zero value
50+
- a ``:CPYwriteToggleFilename`` command for setting the above option
51+
- detect ``.vimrc``, ``.gvim``, ``.ideavim`` and ``.exrc`` as Vim files
52+
- support for these file types:
53+
54+
+ D
55+
+ Edn (.edn)
56+
+ Fennel
57+
+ Markdown
58+
+ ReactJS (.jsx) and ES Module (.mjs)
59+
+ Scala
60+
+ Swift
61+
62+
63+
0.2.1
64+
=====
65+
**(2020-08-16)**
66+
67+
Fixed
68+
-----
69+
- improve load time of ``autoload/cpywrite.vim``
70+
- refactor regex that was inserting authorship at random places in full
71+
license text
72+
73+
Added
74+
-----
75+
- recognize ``.vimrc`` as VimL
76+
- prevent copyright notice for appearing on public domain (i.e. copyright-free)
77+
licenses, in both modes
78+
- leave one blank line after header
79+
- support for these file types:
80+
81+
+ Ada
82+
+ Assembler
83+
+ Coffescript
84+
+ Elixir
85+
+ Elm
86+
+ Erlang
87+
+ Kotlin
88+
+ Lua
89+
+ Objective-C
90+
+ Pascal
91+
92+
93+
0.2.0
94+
=====
95+
**(2020-08-13)**
96+
97+
Fixed
98+
-----
99+
- extract feature tests and core functions to ``autoload`` directory to improve
100+
startup time (`#2`_)
101+
102+
Added
103+
-----
104+
- document suggestion to use `set wildmenu`_ for faster completions when not
105+
using neovim
106+
107+
.. _`set wildmenu`: README.rst#completions
108+
109+
110+
0.1.1
111+
=====
112+
**(2020-07-25)**
113+
114+
Fixed
115+
-----
116+
- brief notices are now fully capitalized
117+
- better-looking standard headers for the older GPL and GFDL licenses families
118+
119+
Added
120+
-----
121+
- convenience commands for getting/setting global options:
122+
123+
+ ``:CPYwriteDefaultLicense`` -- supports ``<tab>`` completion
124+
+ ``:CPYwriteToggleMode`` -- switches ``g:cpywrite#verbatim_mode`` on/off
125+
126+
- relaxed file naming rules to accept full paths
127+
- recognize *CMakeLists* files with the ``.txt`` extension
128+
- apply line wrapping to keep standard headers within 80 chars (you should
129+
still `configure vim to wrap lines`_ for best results)
130+
131+
132+
0.1.0
133+
=====
134+
**(2020-06-18)**
135+
136+
- initial release
137+
138+
139+
.. _`#2`: https://github.com/rdipardo/vim-cpywrite/pull/2
140+
.. _cached: https://github.com/rdipardo/vim-cpywrite/blob/7661fb2a6d1cf81b949f2ec9854c9598c04fac4a/rplugin/pythonx/cpywrite/spdx/license.py#L55
141+
142+
.. vim:ft=rst:et:tw=78:

README.md

Lines changed: 0 additions & 156 deletions
This file was deleted.

0 commit comments

Comments
 (0)