File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 13541354 str
13551355 . toLowerCase ( )
13561356 . trim ( )
1357- . replace ( / ^ ( [ ^ . ] * ) \( ( \d + ) \) $ / g, '$1$2' ) // `filename (5)` => `filename5 `
1358- . replace ( / ^ ( .* ) \( ( \d + ) \) ( \. [ ^ . ] * ) $ / g, '$1$2$3' ) // `file.name (5).txt` => `file.name5 .txt`
1359- . replace ( / ^ ( [ ^ . ] * ) c o p y $ / g, '$11 ' ) // `filename copy` => `filename1`
1360- . replace ( / ^ ( [ ^ . ] * ) c o p y ( \d + ) / g, '$1$2' ) // `filename copy 5` => `filename5 `
1361- . replace ( / ^ ( .* ) c o p y ( \. [ ^ . ] * ) $ / g, '$11 $2' ) // `file.name copy.txt` => file .name1.txt`
1362- . replace ( / ^ ( .* ) c o p y ( \d + ) ( \. [ ^ . ] * ) $ / g, '$1$2$3' ) // `file.name copy 5.txt` => file.name5 .txt`
1357+ . replace ( / ^ ( [ ^ . ] * ) \( ( \d + ) \) $ / g, '$1/ $2' ) // `filename1 (5)` => `filename1/5 `
1358+ . replace ( / ^ ( .* ) \( ( \d + ) \) ( \. [ ^ . ] * ) $ / g, '$1/ $2$3' ) // `f.name1 (5).txt` => `f.name1/5 .txt`
1359+ . replace ( / ^ ( [ ^ . ] * ) c o p y $ / g, '$1/1 ' ) // `filename1 copy` => `filename1/1 `
1360+ . replace ( / ^ ( [ ^ . ] * ) c o p y ( \d + ) / g, '$1/ $2' ) // `filename1 copy 5` => `filename1/5 `
1361+ . replace ( / ^ ( .* ) c o p y ( \. [ ^ . ] * ) $ / g, '$1/1 $2' ) // `f.name1 copy.txt` => f .name1/1 .txt`
1362+ . replace ( / ^ ( .* ) c o p y ( \d + ) ( \. [ ^ . ] * ) $ / g, '$1/ $2$3' ) // `f.name1 copy 5.txt` => f.name1/5 .txt`
13631363 . replace ( / ( \d + ) / g, '/$1/' ) // `file123.456.txt` => `file/123/./456/.txt`
1364+ . replace ( / \/ + / g, '/' ) // `//1//2` => `/1/2`
13641365 . replace ( / ^ \/ | \/ $ / g, '' ) // `/1/.txt` => `1/.txt`
13651366 . split ( '/' )
13661367 . map ( p => / ^ \d + $ / . test ( p ) ? parseFloat ( p ) : p )
Original file line number Diff line number Diff line change 11{
22 "name" : " staticvault" ,
3- "version" : " 1.1.1 " ,
3+ "version" : " 1.1.2 " ,
44 "description" : " Encrypt, host, and share files on a static website" ,
55 "author" : " velipso" ,
66 "license" : " 0BSD" ,
You can’t perform that action at this time.
0 commit comments