Skip to content

Commit

Permalink
geniuspaste: Fix replace configurations with GLib 2.79+
Browse files Browse the repository at this point in the history
We used the invalid single-backslash in pastebin configurations, which
used to work fine for our case until GLib 2.79.  Fix this by using
proper double-backslashes which work with all versions.
  • Loading branch information
b4n committed May 20, 2024
1 parent 7a86376 commit 0e2de9f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion geniuspaste/data/dpaste.org.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ lexer=%language%

[parse]
search=^"(.+)"$
replace=\1
replace=\\1

[defaults]
language=_code
Expand Down
2 changes: 1 addition & 1 deletion geniuspaste/data/fpaste.org.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ title=%title%

[parse]
search="url" *: *"([^"]+)"
replace=\1
replace=\\1

# map GeanyFileType=PastebinFileType
[languages]
Expand Down
2 changes: 1 addition & 1 deletion geniuspaste/data/pastebin.geany.org.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ lexer=%language%

[parse]
search=^.+$
replace=\0
replace=\\0

[defaults]
language=text
Expand Down
2 changes: 1 addition & 1 deletion geniuspaste/data/sprunge.us.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sprunge=%contents%

[parse]
search=^[[:space:]]*(.+?)[[:space:]]*$
replace=\1?%language%
replace=\\1?%language%

# map GeanyFileType=PastebinFileType
[languages]
Expand Down

0 comments on commit 0e2de9f

Please sign in to comment.