mirror of
https://github.com/SinTan1729/chhoto-url
synced 2024-12-26 23:58:35 -06:00
Compare commits
4 commits
a32f00c36e
...
aa097ad982
Author | SHA1 | Date | |
---|---|---|---|
aa097ad982 | |||
bf0944a5fd | |||
6693941985 | |||
0bfaa49e7b |
6 changed files with 8 additions and 8 deletions
4
.github/ISSUE_TEMPLATE/bug_report.md
vendored
4
.github/ISSUE_TEMPLATE/bug_report.md
vendored
|
@ -2,8 +2,8 @@
|
|||
name: Bug report
|
||||
about: Create a report to help us improve
|
||||
title: ''
|
||||
labels: ''
|
||||
assignees: ''
|
||||
labels: 'bug'
|
||||
assignees: 'SinTan1729'
|
||||
|
||||
---
|
||||
|
||||
|
|
4
.github/ISSUE_TEMPLATE/feature_request.md
vendored
4
.github/ISSUE_TEMPLATE/feature_request.md
vendored
|
@ -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
2
actix/Cargo.lock
generated
|
@ -475,7 +475,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
|||
|
||||
[[package]]
|
||||
name = "chhoto-url"
|
||||
version = "5.0.1"
|
||||
version = "5.0.2"
|
||||
dependencies = [
|
||||
"actix-files",
|
||||
"actix-session",
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue