From 0e2de9fae3f6c23a1a048da046279222b1118ce7 Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Tue, 21 May 2024 00:16:10 +0200 Subject: [PATCH] geniuspaste: Fix replace configurations with GLib 2.79+ 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. --- geniuspaste/data/dpaste.org.conf | 2 +- geniuspaste/data/fpaste.org.conf | 2 +- geniuspaste/data/pastebin.geany.org.conf | 2 +- geniuspaste/data/sprunge.us.conf | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/geniuspaste/data/dpaste.org.conf b/geniuspaste/data/dpaste.org.conf index 62f324c28..85ee10a9d 100644 --- a/geniuspaste/data/dpaste.org.conf +++ b/geniuspaste/data/dpaste.org.conf @@ -10,7 +10,7 @@ lexer=%language% [parse] search=^"(.+)"$ -replace=\1 +replace=\\1 [defaults] language=_code diff --git a/geniuspaste/data/fpaste.org.conf b/geniuspaste/data/fpaste.org.conf index 4c74a248b..f2c26466d 100644 --- a/geniuspaste/data/fpaste.org.conf +++ b/geniuspaste/data/fpaste.org.conf @@ -17,7 +17,7 @@ title=%title% [parse] search="url" *: *"([^"]+)" -replace=\1 +replace=\\1 # map GeanyFileType=PastebinFileType [languages] diff --git a/geniuspaste/data/pastebin.geany.org.conf b/geniuspaste/data/pastebin.geany.org.conf index a7e9f3d4b..0e1fdac98 100644 --- a/geniuspaste/data/pastebin.geany.org.conf +++ b/geniuspaste/data/pastebin.geany.org.conf @@ -11,7 +11,7 @@ lexer=%language% [parse] search=^.+$ -replace=\0 +replace=\\0 [defaults] language=text diff --git a/geniuspaste/data/sprunge.us.conf b/geniuspaste/data/sprunge.us.conf index 0ef60c4bf..85e0868ed 100644 --- a/geniuspaste/data/sprunge.us.conf +++ b/geniuspaste/data/sprunge.us.conf @@ -7,7 +7,7 @@ sprunge=%contents% [parse] search=^[[:space:]]*(.+?)[[:space:]]*$ -replace=\1?%language% +replace=\\1?%language% # map GeanyFileType=PastebinFileType [languages]