Skip to content

Commit

Permalink
added new case
Browse files Browse the repository at this point in the history
  • Loading branch information
yashsinghcodes committed Aug 13, 2024
1 parent 66c4428 commit ed82898
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,7 @@ func isLoop(arg string) bool {
return true
}

if strings.Contains(arg,"$") {
clean := regexp.MustCompile(`\s+`)
arg = clean.ReplaceAllString(arg, "")
if strings.Contains(arg,"$") && strings.Contains(arg, ".#") {
pattern := `(^|\.)(#(\d+-\d+)?($|\.))`
re := regexp.MustCompile(pattern)
return strings.Contains(arg, "$") && re.MatchString(arg)
Expand Down

0 comments on commit ed82898

Please sign in to comment.