fix up Can't connect to HS i18n with _tJsx
This commit is contained in:
parent
ad0cbdd4ff
commit
b4284cf000
12 changed files with 37 additions and 30 deletions
|
@ -178,12 +178,12 @@ sub read_src_strings {
|
|||
$src =~ s/"\s*\+\s*"//g;
|
||||
|
||||
$file =~ s/^.*\/src/src/;
|
||||
while ($src =~ /_t\(\s*'(.*?[^\\])'/sg) {
|
||||
while ($src =~ /_t(?:Jsx)?\(\s*'(.*?[^\\])'/sg) {
|
||||
my $s = $1;
|
||||
$s =~ s/\\'/'/g;
|
||||
push @$strings, [$s, $file];
|
||||
}
|
||||
while ($src =~ /_t\(\s*"(.*?[^\\])"/sg) {
|
||||
while ($src =~ /_t(?:Jsx)?\(\s*"(.*?[^\\])"/sg) {
|
||||
push @$strings, [$1, $file];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue