From 5bf2f81d989e230d825a1f74e5c2a1df1960aa3c Mon Sep 17 00:00:00 2001 From: Timon Ringwald Date: Mon, 25 Jul 2022 01:50:52 +0200 Subject: [PATCH] added LICENSE.md --- .gitignore | 29 +++++++++++++++++++++++++++++ LICENSE.md | 19 +++++++++++++++++++ main.go | 3 +-- 3 files changed, 49 insertions(+), 2 deletions(-) create mode 100644 LICENSE.md diff --git a/.gitignore b/.gitignore index 0e8469e..714beed 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,30 @@ format +format_freebsd_386 +format_linux_amd64 +format_linux_arm +format_openbsd_amd64 +format_linux_mips64 +format_freebsd_arm +format_netbsd_arm64 +format_windows_arm64 +format_netbsd_386 +format_freebsd_arm64 +format_linux_386 +format_openbsd_386 +format_openbsd_mips64 +format_netbsd_arm +format_linux_ppc64le +format_windows_386 +format_linux_arm64 +format_netbsd_amd64 +format_windows_arm +format_linux_mips64le +format_openbsd_arm +format_windows_amd64 +format_linux_riscv64 +format_linux_ppc64 +format_linux_mipsle +format_linux_mips +format_openbsd_arm64 +format_freebsd_amd64 +format_linux_s390x diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..2a5c4d4 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,19 @@ +Copyright (c) 2022 Mila Ringwald + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/main.go b/main.go index f7aac01..1d51fed 100644 --- a/main.go +++ b/main.go @@ -45,8 +45,7 @@ var ( // it may be useful to have a boolean flag for this behavior lineParseAmount = flag.Int("n", 1, "amount of lines to feed into input pattern") - replacePattern = regexp.MustCompile(`\{(\d+)(?::(.*?))?(?::(.*?))?(?::(.*?))?\}`) - + replacePattern = regexp.MustCompile(`\{(\d+)(?::(.*?))?(?::(.*?))?(?::(.*?))?\}`) numMutationPattern = regexp.MustCompile(`([+\-*/])(\d+|\((\d+)\))`) )