mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 04:19:47 +02:00
IDE: Check package name validity correctly.
git-svn-id: trunk@59091 -
This commit is contained in:
parent
e2bbe1a4d4
commit
32ab98357d
@ -312,7 +312,7 @@ begin
|
||||
if not FilenameIsAbsolute(LPKFilename) then exit;
|
||||
if CompareFilenames(ExtractFileExt(LPKFilename),'.lpk')<>0 then exit;
|
||||
PkgName:=ExtractFileNameOnly(LPKFilename);
|
||||
if not IsValidIdent(PkgName) then exit;
|
||||
if not IsValidPkgName(PkgName) then exit;
|
||||
Result:=true;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user