Skip to content

Commit

Permalink
tweak assign regex
Browse files Browse the repository at this point in the history
This pattern had false positives on paths...

Only avoid `/*` not `/...*.../`
  • Loading branch information
jsoref committed Mar 7, 2024
1 parent 49d51cd commit db95ea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/spelling/candidate.patterns
Expand Up @@ -490,7 +490,7 @@ content: (['"])[-a-zA-Z=;:/0-9+]*=\g{-1}
# javascript replace regex
\.replace\(/[^/\s"]{3,}/[gim]*\s*,
# assign regex
= /[^*]*?(?:[a-z]{3,}|[A-Z]{3,}|[A-Z][a-z]{2,}).*/
= /[^*].*?(?:[a-z]{3,}|[A-Z]{3,}|[A-Z][a-z]{2,}).*/[i]?(?=\W|$)
# perl regex test
[!=]~ (?:/.*/|m\{.*?\}|m<.*?>|m([|!/@#,;']).*?\g{-1})

Expand Down

0 comments on commit db95ea3

Please sign in to comment.