Skip to content

Conversation

@Timi007
Copy link
Contributor

@Timi007 Timi007 commented Mar 6, 2025

When merged this pull request will:

  • Add VS Code spell checking with some dictionaries
  • Add recommended extensions

IMPORTANT

  • If the contribution affects the documentation, please include your changes in this pull request so the documentation will appear on the website.
  • Development Guidelines are read, understood and applied.
  • Title of this PR uses our standard template Component - Add|Fix|Improve|Change|Make|Remove {changes}.

{
"filename": "**/stringtable.xml",
"includeRegExpList": [
"/<English>(.*)<\\/English>.*/",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which flavor is this sentence ? I think (.*) should be (.*?) for fewer problems.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm assuming it's JS RegExp if the extension is written in TypeScript.

"/\\s*(\\* Author:).*/", // Ignore author names in header
"/\\s*authors\\[\\]\\s*=\\s*{(.*)};.*/", // Ignore author names in CfgPatches
"/\\s*author\\s*=.*/", // Ignore author in config
"/.*((Amov)|(Ainj)|(Acin)|(Ainv)).+/", // Ignore animation names
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why have each part in parenthesis ? Also the starting A doesn't need duplicating, I think.

Suggested change
"/.*((Amov)|(Ainj)|(Acin)|(Ainv)).+/", // Ignore animation names
"/.*A(mov|in[jv]|cin).+/", // Ignore animation names

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is easier to read. I don't know if I like your edit.

Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants