Skip to content

Several messages have 2 spaces between words #4740

Closed

Description

@korygill

Steps to reproduce

Run a script from non-elevated that requires admin, for example.

...Start Windows PowerShell by  using the Run as Administrator option...
..............................^^

Or just look at the change and see the issue.

Expected behavior

Messages should have 1 space between words.
(I did not fix all the "\w+ \w+" errors in all the other, non resx files...)

Actual behavior

Some messages have 2 space between words.

Environment data

PSVersion 5.1.15063.502
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.15063.502
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Activity

  1. iSazonov commented on Sep 2, 2017

    @iSazonov
    Collaborator

    Kory Gill (@korygill) Thanks for your contribution!

    Could you please clarify (samples):

    (I did not fix all the "\w+ \w+" errors in all the other, non resx files...)

  2. korygill commented on Sep 2, 2017

    @korygill
    ContributorAuthor

    Ilya (@iSazonov) what I mean is there are more instances of 2 spaces between words (~401 hits in 143 files) but most, if not all, appear in comments on non-user-facing strings, so no need to fix those necessarily. If someone wanted to do this, they could search for "\w+ \w+" in the files using any regex/editor like notepad++ under src and see them.

  3. iSazonov commented on Sep 3, 2017

    @iSazonov
    Collaborator

    Kory Gill (@korygill) Thanks for clarify!

    Travis Plunk (@TravisEz13) Should we fix such typos and add the check to meta tests?
    Update: Steve Lee (@SteveL-MSFT) pushed #4743 to fix the typos - so one question - should we add the meta test?

  4. added
    Issue-Bug
    Resolution-Fixed
    on Sep 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugResolution-Fixed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions