@lingual/i18n-check 0.9.4 → 0.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -372,7 +372,8 @@ const extractFromExpression = (node, options) => {
|
|
|
372
372
|
ts.isElementAccessExpression(returnStatement.expression)) {
|
|
373
373
|
entries[0].key = returnStatement.expression.argumentExpression
|
|
374
374
|
.getFullText()
|
|
375
|
-
.replace(/['"]/g, '')
|
|
375
|
+
.replace(/['"]/g, '')
|
|
376
|
+
.trim();
|
|
376
377
|
}
|
|
377
378
|
else {
|
|
378
379
|
return null;
|
|
@@ -383,7 +384,8 @@ const extractFromExpression = (node, options) => {
|
|
|
383
384
|
else if (ts.isElementAccessExpression(keyArgument.body)) {
|
|
384
385
|
entries[0].key = keyArgument.body.argumentExpression
|
|
385
386
|
.getFullText()
|
|
386
|
-
.replace(/['"]/g, '')
|
|
387
|
+
.replace(/['"]/g, '')
|
|
388
|
+
.trim();
|
|
387
389
|
}
|
|
388
390
|
else {
|
|
389
391
|
const [_, ...keys] = keyArgument.body.getFullText().split('.');
|