Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit ae437ef

Browse files
fix: clean notes on publish regex might contains a space
1 parent 46adc65 commit ae437ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

studio/src/app/services/editor/publish/publish.service.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ export class PublishService {
243243
return;
244244
}
245245

246-
let result: string = content.replace(/<div slot="notes">(.*?)<\/div>/gis, '');
246+
let result: string = content.replace(/<div slot="notes".*?>.*?<\/div>/gis, '');
247247

248248
resolve(result);
249249
});

0 commit comments

Comments
 (0)