Skip to content
Snippets Groups Projects
Commit c07cefe5 authored by Little-Ben's avatar Little-Ben Committed by David Bauer
Browse files

fix RegExp FileExtension

reFileExtension had a problem caused false replacing of extensions 
(for examble extension "ubi" replaced ubi in ubiquity and left extension "bin")

e.g. file:
gluon-comm-0.1.2-stable.0-20190722-ubiquiti-unifi-ac-mesh-sysupgrade.bin

would have been (wrong):
quiti-unifi-ac-mesh-.bin.jpg

instead of (correct): 
ubiquiti-unifi-ac-mesh.jpg

should fix (at least parts) of #92 


not sure if the first point in line 123 should also be escape 
RegExp(/.(bin|img\.gz|img|tar|ubi)$/);
RegExp(/\.(bin|img\.gz|img|tar|ubi)$/);
parent 2844bb88
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment