@sillsdev/docu-notion 0.14.0-alpha.5 → 0.14.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ exports.gifEmbed = {
7
7
  {
8
8
  // I once saw a gif coming from Notion that wasn't a full
9
9
  // url, which wouldn't work, hence the "http" requirement
10
- regex: /\[.*\]\((http.*(\.(gif|GIF)))\)/,
10
+ regex: /\[.*?\]\((http.*?(\.(gif|GIF)))\)/,
11
11
  replacementPattern: `![]($1)`,
12
12
  },
13
13
  ],
@@ -16,7 +16,7 @@ exports.imgurGifEmbed = {
16
16
  name: "imgur",
17
17
  regexMarkdownModifications: [
18
18
  {
19
- regex: /\[.*\]\((.*imgur\.com\/.*)\)/,
19
+ regex: /\[.*?\]\((.*?imgur\.com\/.*?)\)/,
20
20
  // imgur links to gifs need a .gif at the end, but the url they give you doesn't have one.
21
21
  replacementPattern: `![]($1.gif)`,
22
22
  },
package/package.json CHANGED
@@ -90,5 +90,5 @@
90
90
  "volta": {
91
91
  "node": "18.16.0"
92
92
  },
93
- "version": "0.14.0-alpha.5"
93
+ "version": "0.14.0-alpha.6"
94
94
  }