Skip to content

Commit

Permalink
fix: suppress deprecated warning. (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
soarowl20240613 authored Feb 27, 2024
1 parent dfb567f commit ab6087b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/glob.nim
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,9 @@ proc expandGlob (pattern, root: string, ignoreCase: bool): string =

return pattern

func globToRegex* (pattern: string, isDos = isDosDefault, ignoreCase = isDosDefault): Regex =
func globToRegex* (pattern: string, isDos = isDosDefault, ignoreCase = isDosDefault): Regex2 =
## Converts a string glob pattern to a regex pattern.
globToRegexString(pattern, isDos, ignoreCase).re
globToRegexString(pattern, isDos, ignoreCase).re2

func splitPattern* (pattern: string): PatternStems =
## Splits the given pattern into two parts: the ``base`` which is the part
Expand Down

0 comments on commit ab6087b

Please sign in to comment.