Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/twine.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorIlya Zverev <zverik@textual.ru>2017-06-16 20:20:10 +0300
committerIlya Zverev <zverik@textual.ru>2017-06-20 11:59:13 +0300
commit8a92e73971869275e43d419490b05bffb20fa720 (patch)
treeff0b2a569e4f2ea810b8024934444b47cd6a7c21 /lib
parentb7405f9b3c317e6dcd3755b8df3bbb61d89b4201 (diff)
Add 'q' placeholder modifier for android strings
Diffstat (limited to 'lib')
-rw-r--r--lib/twine/placeholders.rb2
1 files changed, 1 insertions, 1 deletions
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]'