Last active
February 27, 2020 15:29
-
-
Save ycaroafonso/2f2011222682778a41bd7aec8b66b287 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A regex abaixo contém possibilidades de idiomas abreviados com exceção do "pt-br" | |
$regex = "^(af|ar|az|bg|bn|bs|ca|cs|cy|da|de-ch|de|el|en-au|en-ca|en-gb|en|eo|es|et|eu|fa|fi|fo|fr-ca|fr|gl|gu|he|hi|hr|hu|id|is|it|ja|ka|km|ko|ku|lt|lv|mk|mn|ms|nb|nl|no|oc|pl|pt|ro|ru|si|sk|sl|sq|sr-latn|sr|sv|th|tr|tt|ug|uk|vi|zh-cn|zh).js$" | |
Get-ChildItem -Filter '*.js' -Recurse | Where-Object { $_.Name -match $regex } | Remove-Item |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment