Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle comple error of regular expression #28

Open
fujimura opened this issue Aug 31, 2023 · 0 comments
Open

Handle comple error of regular expression #28

fujimura opened this issue Aug 31, 2023 · 0 comments

Comments

@fujimura
Copy link
Owner

$ git gsub "([[:^alpha:]]" "OK" README.md
panic: regexp: Compile(`([[:^alpha:]]`): error parsing regexp: missing closing ): `([[:^alpha:]]`

goroutine 1 [running]:
regexp.MustCompile({0x16b64ef10, 0xd})
        /opt/homebrew/Cellar/go/1.20.2/libexec/src/regexp/regexp.go:319 +0xac
main.addSub(0x1400000e048, {0x16b64ef10?, 0x3?}, {0x16b64ef1e, 0x2}, 0x1048d46e0)
        /Users/daisuke.fujimura/go/pkg/mod/github.com/fujimura/[email protected]/main.go:122 +0x70
main.(*CLI).Run(0x14000074f48, {0x14000010090, 0x3, 0x3})
        /Users/daisuke.fujimura/go/pkg/mod/github.com/fujimura/[email protected]/main.go:169 +0x410
main.main()
        /Users/daisuke.fujimura/go/pkg/mod/github.com/fujimura/[email protected]/main.go:239 +0x88
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant