This commit is contained in:
GoEdgeLab
2024-07-27 15:42:50 +08:00
parent d511145bc5
commit c19be78e0d
524 changed files with 1817 additions and 1346 deletions

View File

@@ -3,11 +3,12 @@
package re
import (
"github.com/iwind/TeaGo/types"
"regexp"
"regexp/syntax"
"strings"
"sync/atomic"
"github.com/iwind/TeaGo/types"
)
var prefixReg = regexp.MustCompile(`^\(\?([\w\s]+)\)`) // (?x)

View File

@@ -3,12 +3,13 @@
package re_test
import (
"github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/firewallconfigs"
"github.com/TeaOSLab/EdgeNode/internal/utils/re"
"github.com/iwind/TeaGo/assert"
"regexp"
"strings"
"testing"
"github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/firewallconfigs"
"github.com/TeaOSLab/EdgeNode/internal/utils/re"
"github.com/iwind/TeaGo/assert"
)
func TestRegexp(t *testing.T) {

View File

@@ -3,10 +3,11 @@
package re_test
import (
"github.com/TeaOSLab/EdgeNode/internal/utils/re"
"github.com/iwind/TeaGo/assert"
"regexp"
"testing"
"github.com/TeaOSLab/EdgeNode/internal/utils/re"
"github.com/iwind/TeaGo/assert"
)
func TestNewRuneTree(t *testing.T) {