From bed09e813f358c4c1e01b407b702b41d4e6a5b6a Mon Sep 17 00:00:00 2001 From: Matias Barcenas Date: Mon, 14 Aug 2017 18:23:50 -0500 Subject: [PATCH] Fixed FormatUtils bug caused by outdated replacement. --- lib/FormatUtils.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/FormatUtils.sh b/lib/FormatUtils.sh index d5239cf..e69f59c 100644 --- a/lib/FormatUtils.sh +++ b/lib/FormatUtils.sh @@ -38,13 +38,13 @@ function format_calculate_statics_length() { } function format_calculate_literals_length() { - local __format_calculate_literals_length__normalizedFormat="`echo "$2" | sed -r 's/%%|\*\*/%1s/g'`" + local __format_calculate_literals_length__normalizedFormat="`echo "$2" | sed -r 's/%%|\*\*/X/g'`" local __format_calculate_literals_length__specifiers=("${!3}") if [ ! "$2" ]; then echo "format_calculate_literals_length missing \$2" format_strip_invisibles "$1" - __format_calculate_literals_length__normalizedFormat="`echo "$FormatStripInvisibles" | sed -r 's/%%|\*\*/%1s/g'`" + __format_calculate_literals_length__normalizedFormat="`echo "$FormatStripInvisibles" | sed -r 's/%%|\*\*/X/g'`" fi if [ ! "$3" ]; then