[Android] Fix compilation when the NEWS file contains special chars
Nicolas Pomepuy
git at videolan.org
Mon Oct 7 09:43:12 UTC 2024
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Oct 3 09:32:06 2024 +0200| [cdf9ce381a5d2d37dcdcaf4e19615f0c6d42c54b] | committer: Duncan McNamara
Fix compilation when the NEWS file contains special chars
> https://code.videolan.org/videolan/vlc-android/commit/cdf9ce381a5d2d37dcdcaf4e19615f0c6d42c54b
---
application/vlc-android/build.gradle | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/application/vlc-android/build.gradle b/application/vlc-android/build.gradle
index e12a5b83b5..942ac43d53 100644
--- a/application/vlc-android/build.gradle
+++ b/application/vlc-android/build.gradle
@@ -309,7 +309,7 @@ def changelog() {
if (started && !line?.trim()) break
if (started) {
if (output != "") output += "\\n"
- output += line.trim()
+ output += line.trim().replaceAll(/(@|'|"|\\/|\(|\)|=|\?)/, /\\$0/)
}
if (line.contains("---")) started = true
}
More information about the Android
mailing list