Skip to content

DX: DiffConsoleFormatter - escape -#6190

Merged
SpacePossum merged 1 commit intoPHP-CS-Fixer:masterfrom
keradus:6183b
Dec 20, 2021
Merged

DX: DiffConsoleFormatter - escape -#6190
SpacePossum merged 1 commit intoPHP-CS-Fixer:masterfrom
keradus:6183b

Conversation

@keradus
Copy link
Member

@keradus keradus commented Dec 16, 2021

https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/6183/files#r770714802

Original form, depending on language or analyser, may trigger a warning.

https://www.regular-expressions.info/charclass.html
In most regex flavors, the only special characters or metacharacters inside a character class are the closing bracket ], the backslash , the caret ^, and the hyphen -. The usual metacharacters are normal characters inside a character class, and do not need to be escaped by a backslash

@coveralls
Copy link

Coverage Status

Coverage remained the same at 93.037% when pulling 23aaa2e on keradus:6183b into 1f4f55a on FriendsOfPHP:master.

@kubawerlos kubawerlos added the RTM Ready To Merge label Dec 16, 2021
@SpacePossum
Copy link
Contributor

Thank you @keradus.

@SpacePossum SpacePossum merged commit a0fe01e into PHP-CS-Fixer:master Dec 20, 2021
@SpacePossum SpacePossum removed the RTM Ready To Merge label Dec 20, 2021
@keradus keradus deleted the 6183b branch December 20, 2021 09:33
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.

4 participants

Comments