Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.0.1-2020.1.5 / staticcheck / testdata / src / CheckSillyRegexp.disabled / CheckSillyRegexp.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/staticcheck/testdata/src/CheckSillyRegexp.disabled/CheckSillyRegexp.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/staticcheck/testdata/src/CheckSillyRegexp.disabled/CheckSillyRegexp.go
new file mode 100644 (file)
index 0000000..1413554
--- /dev/null
@@ -0,0 +1,11 @@
+package pkg
+
+import "regexp"
+
+func fn() {
+       regexp.Compile("")          // MATCH "does not contain any meta characters"
+       regexp.Compile("abc")       // MATCH "does not contain any meta characters"
+       regexp.Compile("abc\\.def") // MATCH "does not contain any meta characters"
+       regexp.Compile("abc.def")
+       regexp.Compile("(abc)")
+}