@@ -107,6 +107,9 @@ describe('sketch', () => {
107
107
[ 'foo bar' , 'foo_bar' + epochSuffix ] ,
108
108
[ '.foobar' , '0foobar' + epochSuffix ] ,
109
109
[ '-fooBar' , '0fooBar' + epochSuffix ] ,
110
+ [ 'foobar.' , 'foobar_' + epochSuffix ] ,
111
+ [ 'fooBar-' , 'fooBar_' + epochSuffix ] ,
112
+ [ 'fooBar+' , 'fooBar_' + epochSuffix ] ,
110
113
[ 'vAlid' , 'vAlid' + epochSuffix ] ,
111
114
] . map ( ( [ input , expected ] ) =>
112
115
toMapIt ( input , expected , ( input : string ) =>
@@ -118,23 +121,20 @@ describe('sketch', () => {
118
121
describe ( 'toValidCloudSketchFolderName' , ( ) => {
119
122
[
120
123
[ 'sketch' , 'sketch' ] ,
121
- [
122
- 'slash-and-dot-is-ok+but+no+plus.ino' ,
123
- 'slash-and-dot-is-ok_but_no_plus.ino' ,
124
- ] ,
124
+ [ 'only_underscore-is+ok.ino' , 'only_underscore_is_ok_ino' ] ,
125
125
[ 'regex++' , 'regex__' ] ,
126
- [ 'dots...' , 'dots... ' ] ,
127
- [ '.dots...' , '0dots... ' ] ,
128
- [ '-dashes---' , '0dashes--- ' ] ,
126
+ [ 'dots...' , 'dots___ ' ] ,
127
+ [ '.dots...' , '0dots___ ' ] ,
128
+ [ '-dashes---' , '0dashes___ ' ] ,
129
129
[ '_underscore___' , '0underscore___' ] ,
130
130
[ 'No Spaces' , 'No_Spaces' ] ,
131
131
[ '_startsWithUnderscore' , '0startsWithUnderscore' ] ,
132
- [ 'Invalid+Char.ino' , 'Invalid_Char.ino ' ] ,
132
+ [ 'Invalid+Char.ino' , 'Invalid_Char_ino ' ] ,
133
133
[ '' , 'sketch' ] ,
134
134
[ '/' , '0' ] ,
135
135
[
136
- '//////////////////////// //////////////-/' ,
137
- '0___________________________________ ' ,
136
+ '/-1 ////////////////////+ //////////////-/' ,
137
+ '0_1_________________________________ ' ,
138
138
] ,
139
139
[ '//trash/' , '0_trash_' ] ,
140
140
[
0 commit comments