mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-25 22:07:59 +01:00
Explain and add "_-"
This commit is contained in:
parent
fcc7811c0e
commit
6b99c307dd
1 changed files with 4 additions and 3 deletions
|
@ -113,7 +113,9 @@ archivesBaseName = "mod-${project.name.toLowerCase()}"
|
|||
task copyBGPones(type: Copy) {
|
||||
delete "${buildDir}/skins/assets/minelittlepony/textures/entity/pony"
|
||||
|
||||
def permittedChars = /[^0-9a-z\",\{\}\[\]\(\):\'\.\/ ]/
|
||||
// use the same rejex for both filenames and the bgponies.json
|
||||
// Otherwise there could be errors because of the names in the json not matching the ones on disk
|
||||
def permittedChars = /[^0-9a-z_-\",\t\{\}\[\]\(\):\'\.\/ ]/
|
||||
|
||||
from("skins/Background Ponies") {
|
||||
exclude "bgponies.json"
|
||||
|
@ -129,8 +131,7 @@ task copyBGPones(type: Copy) {
|
|||
|
||||
filter { line ->
|
||||
line.toLowerCase()
|
||||
.replaceAll('\t', ' ')
|
||||
.replaceAll(permittedChars, '')
|
||||
.replaceAll(permittedCharsJSON, '')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue