@@ -103,13 +103,13 @@ export function help() {
103103 )
104104 COLOR . command (
105105 null ,
106- '--project-generate-scrom12 ' ,
107- 'SCORM12 and pass additional scrom settings.' ,
106+ '--project-generate-scorm12 ' ,
107+ 'SCORM12 and pass additional scorm settings.' ,
108108 )
109109 COLOR . command (
110110 null ,
111- '--project-generate-scrom2004 ' ,
112- 'SCORM2004 and pass additional scrom settings.' ,
111+ '--project-generate-scorm2004 ' ,
112+ 'SCORM2004 and pass additional scorm settings.' ,
113113 )
114114 COLOR . command (
115115 null ,
@@ -997,7 +997,7 @@ async function toCard(
997997
998998 // SCORM12
999999 if ( repo && argument [ 'project-generate-scorm12' ] ) {
1000- argument . output = 'assets/scrom12 /' + backupOutput
1000+ argument . output = 'assets/scorm12 /' + backupOutput
10011001 const asset = argument . output + '.zip'
10021002
10031003 if (
@@ -1091,9 +1091,12 @@ function card(
10911091 let image = ''
10921092 if ( img_url ) {
10931093 if ( ! ( img_url . startsWith ( 'http:' ) || img_url . startsWith ( 'https:' ) ) ) {
1094- const fullImageUrl = new URL ( img_url , url )
1095-
1096- img_url = fullImageUrl . toString ( )
1094+ try {
1095+ const fullImageUrl = new URL ( img_url , url )
1096+ img_url = fullImageUrl . toString ( )
1097+ } catch ( e ) {
1098+ // url is not a valid base (e.g. empty string); keep img_url as-is
1099+ }
10971100 }
10981101
10991102 image =
0 commit comments