Skip to content

Fix regex warnings from LGTM.com#66615

Merged
mjbvz merged 3 commits intomicrosoft:masterfrom
alexet:regex-fixes
Jan 18, 2019
Merged

Fix regex warnings from LGTM.com#66615
mjbvz merged 3 commits intomicrosoft:masterfrom
alexet:regex-fixes

Conversation

@alexet
Copy link

@alexet alexet commented Jan 16, 2019

This fixes some regex warning found up on LGTM.com here.

These are mostly due to confusion about regex syntax where separating character classes with a pipe is not needed.

I think this is the correct fix in each case but I am not entirely sure as it's not always obvious whether a pipe was intended to be a member of the class or not.

In particular I am not sure about the emmet extensions.

(Disclaimer: I work for semmle, the company behind LGTM.com)

@sandy081 sandy081 requested a review from jrieken January 17, 2019 15:00
@jrieken jrieken assigned octref, bpasero and mjbvz and unassigned jrieken Jan 17, 2019
@octref
Copy link
Contributor

octref commented Jan 17, 2019

In the emmet case the original intention was probably for readability, but I'm fine for changing.

@mjbvz mjbvz self-requested a review January 17, 2019 18:26
@bpasero bpasero requested review from octref and removed request for jrieken and octref January 18, 2019 11:38
@bpasero
Copy link
Member

bpasero commented Jan 18, 2019

Down to one in markdown @mjbvz

@mjbvz mjbvz merged commit c880900 into microsoft:master Jan 18, 2019
@mjbvz mjbvz added this to the December/January 2019 milestone Jan 18, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants