Skip to content

fix: improved regex that doesn't exclude other windows languages - #59

Open
Nathan-Wrpt wants to merge 1 commit into
PrimeBuild-pc:mainfrom
Nathan-Wrpt:fix/localized-power-plan-parsing
Open

Nathan-Wrpt wants to merge 1 commit into
PrimeBuild-pc:mainfrom
Nathan-Wrpt:fix/localized-power-plan-parsing

Conversation

@Nathan-Wrpt

Copy link
Copy Markdown

Summary

Updated PowerPlanService to parse power plan entries using their GUID format instead of the English Power Scheme GUID: label. This fixes power plan detection on different languages Windows installations.

Type of Change

  • Bug fix
  • Feature
  • Refactor
  • Documentation
  • Security hardening
  • Performance improvement

Validation

  • Built Debug and Release successfully
  • Ran automated tests
  • Verified impacted UI flows
  • Verified no secrets/credentials introduced

Automated tests could not be run because .NET was unavailable in the development environment. A localized-output test was created locally but is not included in this pull request.

Security and Risk Notes

No impact on elevation, process control, power plan operations, or persisted configuration. The change only affects parsing of powercfg /list and /getactivescheme output.

Checklist

  • Updated docs where relevant
  • Added or updated tests where relevant
  • Kept changes scoped and backwards compatible where possible

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.

1 participant