This commit is contained in:
Kovid Goyal
2022-08-15 15:02:58 +05:30
parent 083deec663
commit 63da2e1ec6
2 changed files with 9 additions and 8 deletions

View File

@@ -56,7 +56,7 @@ func init() {
if matches[1] == "" {
panic(fmt.Errorf("Failed to find the default_pager_for_help"))
}
text := strings.ReplaceAll("[" + matches[1] + "]", "'", "\"")
text := strings.ReplaceAll("["+matches[1]+"]", "'", "\"")
err = json.Unmarshal([]byte(text), &DefaultPager)
if err != nil {
fmt.Fprintln(os.Stderr, "Failed to unmarshal default pager text:", text)