Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImproveXLIFFCommentsTooltipsActions #27

Merged
merged 3 commits into from
Aug 21, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
➕Add: RegExNotes, Translateable Properties
  • Loading branch information
mkoenigsva committed Aug 21, 2024
commit 42e755990f334fa1f2b73e5200afd8bdd5f6f345
22 changes: 21 additions & 1 deletion src/utils/RegExNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,24 @@
<!-- (?msi) match the remainder of the pattern with the following effective flags: gmsi
m modifier: multi line. Causes ^ and $ to match the begin/end of each line (not only begin/end of string)
s modifier: single line. Dot matches newline characters
i modifier: insensitive. Case insensitive match (ignores case of [a-zA-Z]) -->
i modifier: insensitive. Case insensitive match (ignores case of [a-zA-Z]) -->


# Translateable Properties

## only the properties

```PowerShell
(?i)((Caption|ToolTip|InstructionalText)\s*=\s*'([^']+?)');
```

## with comment

```PowerShell
(?i)((Caption|ToolTip|InstructionalText)\s*=\s*'([^']+?)')(?:, Comment\s*=\s*([\s\S\n]*?));
```
## With and Without comment

```PowerShell
(?i)((Caption|ToolTip|InstructionalText)\s*=\s*'([^']+?)')(?:, Comment\s*=\s*([\s\S\n]*?))*;
```