mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fixed bug in checkExtension function
This commit is contained in:
parent
1bc378339e
commit
33347354b9
1 changed files with 1 additions and 1 deletions
|
|
@ -280,7 +280,7 @@ CloudFunc.checkExtension=function(pName,pExt)
|
|||
* длинны расширения -
|
||||
* имеет смысл продолжать
|
||||
*/
|
||||
if (typeof pExt === 'string' &&
|
||||
if (typeof pExt == 'string' &&
|
||||
pName.length > pExt.length) {
|
||||
var lLength=pName.length; /* длина имени*/
|
||||
var lExtNum=pName.lastIndexOf(pExt);/* последнее вхождение расширения*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue