Skip to content

Commit

Permalink
Include CJS bundle & Publish v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
7PH committed Jan 21, 2024
1 parent 871d7dd commit e6e73eb
Show file tree
Hide file tree
Showing 5 changed files with 7,415 additions and 7,402 deletions.
1 change: 1 addition & 0 deletions dist/beautify-url.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"use strict";const i=14,_=10,s="\u22EF",a=1;function N(t){return t==="https:"?"":t+"//"}function T(t){return t.startsWith("www.")?t.substring(4):t}function c(t){if(t==="/")return"";if(t.length<14)return t;const n=t.split("/").filter(e=>e.length>0),r=n[n.length-1];return r.length<14&&n.length>2?`/${s}/${r}`:`/${s}${r.substring(r.length-14+1)}`}function o(t){const n=t.replace(/^\?/,"");return n.length===0?"":n.length<10?`?${n}`:`?${s}${n.substring(n.length-10+1)}`}function L(t){try{const n=new URL(t),r=N(n.protocol),e=T(n.hostname),u=c(n.pathname),E=o(n.search);return`${r}${e}${u}${E}`}catch{return t}}module.exports=L;
File renamed without changes.
Loading

0 comments on commit e6e73eb

Please sign in to comment.