File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ const ctx = canvas.getContext("2d");
4040ctx . imageSmoothingEnabled = format . smoothing ;
4141const iconCanvas = createCanvas ( iconFormat . width , iconFormat . height ) ;
4242const iconCtx = iconCanvas . getContext ( "2d" ) ;
43- const DNA_DELIMITER = "- " ;
43+ const DNA_DELIMITER = "\n " ;
4444var metadataList = [ ] ;
4545var attributesList = [ ] ;
4646var dnaList = new Set ( ) ;
@@ -86,8 +86,8 @@ const getElements = (path) => {
8686 . readdirSync ( path )
8787 . filter ( ( item ) => ! / ( ^ | \/ ) \. [ ^ \/ \. ] / g. test ( item ) )
8888 . map ( ( i , index ) => {
89- if ( i . includes ( "-" ) ) {
90- throw new Error ( `layer name can not contain dashes , please fix: ${ i } ` ) ;
89+ if ( i . includes ( DNA_DELIMITER ) ) {
90+ throw new Error ( `layer name can not contain ${ DNA_DELIMITER } , please fix: ${ i } ` ) ;
9191 }
9292 return {
9393 id : index ,
You can’t perform that action at this time.
0 commit comments