@tryghost/mg-shortcodes 0.1.3 → 0.2.1

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.
package/lib/Shortcodes.js CHANGED
@@ -14,7 +14,7 @@ class Shortcodes {
14
14
  }});
15
15
  }
16
16
 
17
- unwrapFromQuotes(string) {
17
+ unwrapFromQuotes(string = '') {
18
18
  const chars = ['’', '”', '“', '‘', '"', '"'];
19
19
  const quoteRegExp = new RegExp(`^(${chars.join('|')})|(${chars.join('|')})$`, 'gm');
20
20
  return string.replace(quoteRegExp, '');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/mg-shortcodes",
3
- "version": "0.1.3",
3
+ "version": "0.2.1",
4
4
  "repository": "https://github.com/TryGhost/migrate/tree/main/packages/mg-shortcodes",
5
5
  "author": "Ghost Foundation",
6
6
  "license": "MIT",
@@ -20,9 +20,9 @@
20
20
  "access": "public"
21
21
  },
22
22
  "devDependencies": {
23
- "eslint": "8.31.0",
24
- "jest": "29.3.1",
25
- "jest-extended": "3.2.2"
23
+ "eslint": "8.35.0",
24
+ "jest": "29.4.3",
25
+ "jest-extended": "3.2.4"
26
26
  },
27
- "gitHead": "ac01636f55ec4bcf15b1fed2e5efe58327009d0a"
27
+ "gitHead": "c2534e3c865cf26f7598f8f05dee5ca399c7a4f4"
28
28
  }