Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Awesome-E committed Apr 18, 2024
1 parent 5cc6183 commit 05548e5
Show file tree
Hide file tree
Showing 3 changed files with 304 additions and 250 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Slide Zipper
# <img src="extension/icons/pack-icon-32.png" width="32"> Slide Zipper

Simple-to-use ZIP creator for Google Slides. Automatically create ZIP files of SVGs, PNGs, and JPEGs for slides in your presentation!

Expand Down
2 changes: 1 addition & 1 deletion extension/scripts/downloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function init (options) {

const errors = []
fetch(`https://docs.google.com/presentation/d/${presentationId}/edit`).then(r => r.text()).then(data => {
const idMatcher = '(p|g[a-zA-Z0-9_]{8,25})(?=:notes)'
const idMatcher = '(p\\d{0,5}|g[a-zA-Z0-9_]{8,25})(?=:notes)'
const expression = new RegExp(`DOCS_modelChunk\\s=\\s?\\[(?:.(?!;\\s?DOCS))*${idMatcher}(?:.(?!;\\s?DOCS))*\\]`, 'g')
const matches = data.match(expression).map(instance => {
const id = instance.match(new RegExp(idMatcher, 'g'))[0]
Expand Down
Loading

0 comments on commit 05548e5

Please sign in to comment.