Fixed FormatUtils bug caused by outdated replacement.

This commit is contained in:
Matias Barcenas 2017-08-14 18:23:50 -05:00
parent 0a2ce6fcd1
commit bed09e813f
1 changed files with 2 additions and 2 deletions

View File

@ -38,13 +38,13 @@ function format_calculate_statics_length() {
} }
function format_calculate_literals_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}") local __format_calculate_literals_length__specifiers=("${!3}")
if [ ! "$2" ]; then if [ ! "$2" ]; then
echo "format_calculate_literals_length missing \$2" echo "format_calculate_literals_length missing \$2"
format_strip_invisibles "$1" 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 fi
if [ ! "$3" ]; then if [ ! "$3" ]; then