mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-08 11:48:26 -04:00
Correctly remove version number
This commit is contained in:
parent
2c26aa67eb
commit
754d8cb7b1
@ -169,7 +169,7 @@ if (-not $githubonly) {
|
||||
# Remove the version number
|
||||
$filename = $filename -replace '_[0-9.]+([-_.])', '$1'
|
||||
# Remove any REV ID
|
||||
$filename = $filename -replace '_[0-9a-f]{7}([_.][^.]+)$', '$1'
|
||||
$filename = $filename -replace '_[0-9a-f]{7}([_.])', '$1'
|
||||
# Add the date
|
||||
$filename = $filename -replace '(\.[^.]+)$', ('_' + $current_date + '$1')
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user