From 8a92e73971869275e43d419490b05bffb20fa720 Mon Sep 17 00:00:00 2001 From: Ilya Zverev Date: Fri, 16 Jun 2017 20:20:10 +0300 Subject: [PATCH] Add 'q' placeholder modifier for android strings --- lib/twine/placeholders.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/twine/placeholders.rb b/lib/twine/placeholders.rb index 9f1828e..1c7b200 100644 --- a/lib/twine/placeholders.rb +++ b/lib/twine/placeholders.rb @@ -3,7 +3,7 @@ module Twine extend self # Note: the ` ` (single space) flag is NOT supported - PLACEHOLDER_FLAGS_WIDTH_PRECISION_LENGTH = '([-+0#])?(\d+|\*)?(\.(\d+|\*))?(hh?|ll?|L|z|j|t)?' + PLACEHOLDER_FLAGS_WIDTH_PRECISION_LENGTH = '([-+0#])?(\d+|\*)?(\.(\d+|\*))?(hh?|ll?|L|z|j|t|q)?' PLACEHOLDER_PARAMETER_FLAGS_WIDTH_PRECISION_LENGTH = '(\d+\$)?' + PLACEHOLDER_FLAGS_WIDTH_PRECISION_LENGTH PLACEHOLDER_TYPES = '[diufFeEgGxXoscpaA]'