Skip to content

Fix regex warnings from LGTM.com - #66615

Merged
Matt Bierner (mjbvz) merged 3 commits into
microsoft:masterfrom
alexet:regex-fixes
Jan 18, 2019
Merged

Fix regex warnings from LGTM.com#66615
Matt Bierner (mjbvz) merged 3 commits into
microsoft:masterfrom
alexet:regex-fixes

Conversation

@alexet

Copy link
Copy Markdown

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)

@octref

Copy link
Copy Markdown
Contributor

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

@bpasero

Copy link
Copy Markdown
Contributor

Down to one in markdown Matt Bierner (@mjbvz)

@mjbvz
Matt Bierner (mjbvz) merged commit c880900 into microsoft:master 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