git-gsub icon indicating copy to clipboard operation
git-gsub copied to clipboard

Replace with submatch(backreference) is not working

Open fujimura opened this issue 3 years ago • 0 comments

git-gsub is using regexp package for replacing string, which depends on re2 and re2 doesn't support submatch.

Replacing with submatch is undocumented(yet partially test) feature, but I hope this to be supported officially.

Failing test case can be seen in #22.

regexp package - regexp - pkg.go.dev Syntax · google/re2 Wiki

fujimura avatar Apr 05 '22 07:04 fujimura