From 6a1dacb6b6c4e33ceed942d4b7c2724e6e6b713c Mon Sep 17 00:00:00 2001 From: Dongjoon Hyun Date: Tue, 14 Sep 2021 16:26:50 -0700 Subject: [PATCH] [SPARK-36712][BUILD][FOLLOWUP] Improve the regex to avoid breaking pom.xml ### What changes were proposed in this pull request? This PR aims to fix the regex to avoid breaking `pom.xml`. ### Why are the changes needed? **BEFORE** ``` $ dev/change-scala-version.sh 2.12 $ git diff | head -n10 diff --git a/core/pom.xml b/core/pom.xml index dbde22f2bf..6ed368353b 100644 --- a/core/pom.xml +++ b/core/pom.xml -35,7 +35,7 - \)\(\)/\1\2/' $f - sed_i 's/^\([[:space:]]*\)/\1\)$/\1\)/\1-->\2/' $f done