Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
realyasser committed Aug 30, 2024
1 parent aa1f8d9 commit 24d0930
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@

VLB is easy to use, making the process as simple as the following steps:

> **ⓘ NOTE:**
> Keep in mind, you should rename [downloaded file](https://github.com/realyasser/VLB/releases) to `VLB.exe` (Just `VLB` if your operating system (OS) is Linux) if you want to follow these steps exactly. However, you can do the same thing if you replace `VLB` with the filename you have.
**► One-time run:**

If you want to process a single link, run the following command in the folder where the VLB program is located:
Expand Down
3 changes: 1 addition & 2 deletions VanityBreaker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ static class VanityBreaker {
AllowAutoRedirect = false
};
static HttpClient client = new(handler);
static Regex URLRegex = new Regex("^(https?:\\/\\/)([\\da-z\\.-]+\\.[a-z\\.]{2,6}|[\\d\\.]+)([\\/:?=&#]{1}[\\da-z\\.-]+)*[\\/\\?]?$");

static string Request(string url)
{
Expand Down Expand Up @@ -37,7 +36,7 @@ static string Request(string url)
public static void FindOrigin(string link)
{

if (!URLRegex.IsMatch(link))
if (!Uri.IsWellFormedUriString(link, UriKind.Absolute))
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("[-] Please input a valid link that includes protocol.");
Expand Down

0 comments on commit 24d0930

Please # to comment.