From 35cbde95309d46cf56d738b394d48ffbb64cb078 Mon Sep 17 00:00:00 2001 From: John Date: Sat, 15 Aug 2020 21:28:24 +0800 Subject: [PATCH] comment update for package gstr --- text/gstr/gstr_case.go | 5 ++--- text/gstr/gstr_z_unit_case_test.go | 2 -- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/text/gstr/gstr_case.go b/text/gstr/gstr_case.go index e264f1e2a..71761826b 100644 --- a/text/gstr/gstr_case.go +++ b/text/gstr/gstr_case.go @@ -24,9 +24,8 @@ import ( ) var ( - numberSequence = regexp.MustCompile(`([a-zA-Z])(\d+)([a-zA-Z]?)`) - numberReplacement = []byte(`$1 $2 $3`) - + numberSequence = regexp.MustCompile(`([a-zA-Z])(\d+)([a-zA-Z]?)`) + numberReplacement = []byte(`$1 $2 $3`) firstCamelCaseStart = regexp.MustCompile(`([A-Z]+)([A-Z]?[_a-z\d]+)|$`) firstCamelCaseEnd = regexp.MustCompile(`([\w\W]*?)([_]?[A-Z]+)$`) ) diff --git a/text/gstr/gstr_z_unit_case_test.go b/text/gstr/gstr_z_unit_case_test.go index f9df4fe6e..de957d9f3 100644 --- a/text/gstr/gstr_z_unit_case_test.go +++ b/text/gstr/gstr_z_unit_case_test.go @@ -4,8 +4,6 @@ // If a copy of the MIT was not distributed with this file, // You can obtain one at https://github.com/gogf/gf. -// go test *.go -bench=".*" - package gstr_test import (