You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -22,8 +64,18 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
64
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
65
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
66
SOFTWARE.
67
+
25
68
============
26
-
Small pieces of code are copied from the Go framework under this license:
69
+
These pieces of code are copied from the Go framework:
70
+
71
+
- The overall directory structure of regexp2 was inspired by the Go runtime regexp package.
72
+
- The optimization in the escape method of syntax/escape.go is from the Go runtime QuoteMeta() func in regexp/regexp.go
73
+
- The method signatures in regexp.go are designed to match the Go framework regexp methods closely
74
+
- func regexp2.MustCompile and func quote are almost identifical to the regexp package versions
75
+
- BenchmarkMatch* and TestProgramTooLong* funcs in regexp_performance_test.go were copied from the framework
76
+
regexp/exec_test.go
77
+
---
78
+
The Go framework was released under this license:
27
79
28
80
Copyright (c) 2012 The Go Authors. All rights reserved.
29
81
@@ -51,4 +103,31 @@ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
51
103
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
52
104
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
53
105
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
54
-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
106
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
107
+
108
+
============
109
+
Some test data were gathered from the Mono project.
110
+
111
+
regexp_mono_test.go: ported from https://github.com/mono/mono/blob/master/mcs/class/System/Test/System.Text.RegularExpressions/PerlTrials.cs
112
+
---
113
+
Mono tests released under this license:
114
+
115
+
Permission is hereby granted, free of charge, to any person obtaining
116
+
a copy of this software and associated documentation files (the
117
+
"Software"), to deal in the Software without restriction, including
118
+
without limitation the rights to use, copy, modify, merge, publish,
119
+
distribute, sublicense, and/or sell copies of the Software, and to
120
+
permit persons to whom the Software is furnished to do so, subject to
121
+
the following conditions:
122
+
123
+
The above copyright notice and this permission notice shall be
124
+
included in all copies or substantial portions of the Software.
125
+
126
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
127
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
128
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
129
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
130
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
131
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
132
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0 commit comments