We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afb9ea3 commit affde54Copy full SHA for affde54
1 file changed
Scripts/ExportUnityPackage.ps1
@@ -109,7 +109,7 @@ function global:Export-UnityPackage
109
$MetaFilePath = "$FilePath.meta"
110
if (-not (Test-Path $MetaFilePath -PathType Leaf)) { Write-Error "Meta file not found: $MetaFilePath"; $AnyErrors = $true; return }
111
112
- $MatchSuccess = $(Get-Content $MetaFilePath -Raw) -match 'guid:\s*([0-9A-Fa-f]{32})\s'
+ $MatchSuccess = $(Get-Content $MetaFilePath -Raw) -match 'guid:\s*([0-9A-Fa-f]{32})(?:\s|$)'
113
if (-not $MatchSuccess) { Write-Error "Meta file does not contain GUID or GUID is malformed: $MetaFilePath"; $AnyErrors = $true; return}
114
$guid = $Matches[1]
115
New-Item -Path "$tmpdir/$guid" -ItemType Directory -Force | Out-Null
0 commit comments