Skip to content
This repository has been archived by the owner on Aug 27, 2023. It is now read-only.

Commit

Permalink
increase max icon shortcode length
Browse files Browse the repository at this point in the history
  • Loading branch information
nothingislost committed Nov 19, 2021
1 parent a5f91d9 commit 836bcf5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"author": "NothingIslost <[@nothingislost](https://github.com/nothingislost)>",
"license": "MIT",
"devDependencies": {
"@aidenlx/obsidian-icon-shortcodes": "^0.4.0",
"@aidenlx/obsidian-icon-shortcodes": "^0.5.1",
"@giotramu/prettier-config": "^1.1.2",
"@rollup/plugin-commonjs": "^15.1.0",
"@rollup/plugin-json": "^4.1.0",
Expand Down
3 changes: 2 additions & 1 deletion src/hmd-fold-emoji.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
// DESCRIPTION: Fold and render emoji :smile:
//
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { getApi } = require("@aidenlx/obsidian-icon-shortcodes");
(function (mod) {
//[HyperMD] UMD patched!
Expand Down Expand Up @@ -51,7 +52,7 @@ const { getApi } = require("@aidenlx/obsidian-icon-shortcodes");
name += t.string;
}
// filter text that is too long to be shortcode
if (name.length > 20) return;
if (name.length > 55) return;
// filter using common shortcode pattern
if (!EmojiPattern.test(name)) return;

Expand Down

0 comments on commit 836bcf5

Please sign in to comment.