mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-27 14:47:50 -03:00
spelling: syntax
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
@ -173,7 +173,7 @@ func isUnsupportedRegexpSyntax(reg string) bool {
|
|||||||
(strings.HasPrefix(reg, multilinePrefix+`/`) && strings.HasSuffix(reg, `/`))
|
(strings.HasPrefix(reg, multilinePrefix+`/`) && strings.HasSuffix(reg, `/`))
|
||||||
}
|
}
|
||||||
|
|
||||||
// convertToValidRegexp converts Ruby regexp syntaxt to RE2 equivalent.
|
// convertToValidRegexp converts Ruby regexp syntax to RE2 equivalent.
|
||||||
// Does not work with Ruby regexp literals.
|
// Does not work with Ruby regexp literals.
|
||||||
func convertToValidRegexp(rubyRegexp string) string {
|
func convertToValidRegexp(rubyRegexp string) string {
|
||||||
return multilinePrefix + rubyRegexp
|
return multilinePrefix + rubyRegexp
|
||||||
|
Reference in New Issue
Block a user