Compare commits

...

4 Commits

6 changed files with 8 additions and 8 deletions

View File

@ -2,8 +2,8 @@
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
labels: 'bug'
assignees: 'SinTan1729'
---

View File

@ -2,8 +2,8 @@
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''
labels: 'feature-request'
assignees: 'SinTan1729'
---

2
actix/Cargo.lock generated
View File

@ -475,7 +475,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "chhoto-url"
version = "5.0.1"
version = "5.0.2"
dependencies = [
"actix-files",
"actix-session",

View File

@ -1,6 +1,6 @@
[package]
name = "chhoto-url"
version = "5.0.1"
version = "5.0.2"
edition = "2021"
authors = ["Sayantan Santra <sayantan[dot]santra689[at]gmail[dot]com"]
license = "mit"

View File

@ -12,7 +12,7 @@ pub fn get_longurl(shortlink: String, db: &Connection) -> String {
}
fn validate_link(link: &str) -> bool {
let re = Regex::new("[a-z0-9-_]+").unwrap();
let re = Regex::new("^[a-z0-9-_]+$").unwrap();
re.is_match(link)
}

View File

@ -16,7 +16,7 @@ done
echo "Do you want to push these to Docker Hub?"
select yn in "Yes" "No";
do
if [ "$yn" = "Yes" ]; then
if [ "$yn"="Yes" ]; then
for tag in latest $v_patch $v_minor $v_major;
do
docker push sintan1729/$name:$tag