diff --git a/main.ts b/main.ts index 1b0e809..df04ee0 100644 --- a/main.ts +++ b/main.ts @@ -469,10 +469,8 @@ export default class TextFormat extends Plugin { case "decodeURI": replacedText = selectedText.replace( /(https?|ftp|file):\/\/[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]/g, - function (t) { - return decodeURI(t); - } - ).replace(/\s/g, "%20"); + function (t) { return decodeURI(t).replace(/\s/g, "%20"); } + ); break; case "hyphen": replacedText = selectedText.replace(/(\w)-[ ]/g, ""); diff --git a/manifest.json b/manifest.json index edfe8b8..e0b45d3 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-text-format", "name": "Text Format", - "version": "2.2.6", + "version": "2.2.7", "minAppVersion": "0.9.7", "description": "Format selected text lowercase/uppercase/capitalize/titlecase or remove redundant spaces/newline characters.", "author": "Benature",