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

github.com/nextcloud/docker-ci.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzorn-v <zorn7@yandex.ru>2022-10-30 14:59:15 +0300
committerGitHub <noreply@github.com>2022-10-30 14:59:15 +0300
commit33beb897e4152895109f1657272d5346701863a2 (patch)
tree4cdd97a9393766f2f296783815f625e29d2b94ac
parentdf9c8b92bbf2340f8be9f33c59d51f4071b5847b (diff)
Allow use var props as app name in vue files
Signed-off-by: zorn-v <zorn7@yandex.ru>
-rw-r--r--translations/translationtool/src/translationtool.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/translations/translationtool/src/translationtool.php b/translations/translationtool/src/translationtool.php
index ce0976f..8f4e82f 100644
--- a/translations/translationtool/src/translationtool.php
+++ b/translations/translationtool/src/translationtool.php
@@ -327,9 +327,9 @@ class TranslatableApp {
}
// t
- preg_match_all("/\Wt\s*\(\s*'?([\w]+)'?,\s*'(.+)'/", $vueSource, $singleQuoteMatches);
- preg_match_all("/\Wt\s*\(\s*\"?([\w]+)\"?,\s*\"(.+)\"/", $vueSource, $doubleQuoteMatches);
- preg_match_all("/\Wt\s*\(\s*\'?([\w]+)\'?\s*,\s*\`(.+)\`\s*\)/msU", $vueSource, $templateQuoteMatches);
+ preg_match_all("/\Wt\s*\(\s*'?([\w.]+)'?,\s*'(.+)'/", $vueSource, $singleQuoteMatches);
+ preg_match_all("/\Wt\s*\(\s*\"?([\w.]+)\"?,\s*\"(.+)\"/", $vueSource, $doubleQuoteMatches);
+ preg_match_all("/\Wt\s*\(\s*\'?([\w.]+)\'?\s*,\s*\`(.+)\`\s*\)/msU", $vueSource, $templateQuoteMatches);
$matches0 = array_merge($singleQuoteMatches[0], $doubleQuoteMatches[0], $templateQuoteMatches[0]);
$matches2 = array_merge($singleQuoteMatches[2], $doubleQuoteMatches[2], $templateQuoteMatches[2]);
foreach (array_keys($matches2) as $k) {
@@ -339,9 +339,9 @@ class TranslatableApp {
}
// n
- preg_match_all("/\Wn\s*\(\s*'?([\w]+)'?,\s*'(.+)'\s*,\s*'(.+)'\s*(.+)/", $vueSource, $singleQuoteMatches);
- preg_match_all("/\Wn\s*\(\s*\"?([\w]+)\"?,\s*\"(.+)\"\s*,\s*\"(.+)\"\s*(.+)/", $vueSource, $doubleQuoteMatches);
- preg_match_all("/\Wn\s*\(\s*\'?([\w]+)\'?\s*,\s*\`(.+)\`\s*,\s*\`(.+)\`\s*\)/msU", $vueSource, $templateQuoteMatches);
+ preg_match_all("/\Wn\s*\(\s*'?([\w.]+)'?,\s*'(.+)'\s*,\s*'(.+)'\s*(.+)/", $vueSource, $singleQuoteMatches);
+ preg_match_all("/\Wn\s*\(\s*\"?([\w.]+)\"?,\s*\"(.+)\"\s*,\s*\"(.+)\"\s*(.+)/", $vueSource, $doubleQuoteMatches);
+ preg_match_all("/\Wn\s*\(\s*\'?([\w.]+)\'?\s*,\s*\`(.+)\`\s*,\s*\`(.+)\`\s*\)/msU", $vueSource, $templateQuoteMatches);
$matches0 = array_merge($singleQuoteMatches[0], $doubleQuoteMatches[0], $templateQuoteMatches[0]);
$matches2 = array_merge($singleQuoteMatches[2], $doubleQuoteMatches[2], $templateQuoteMatches[2]);
$matches3 = array_merge($singleQuoteMatches[3], $doubleQuoteMatches[3], $templateQuoteMatches[3]);