Ability to fallback to the native RegExp OR be able to change regex engine #8040
-
What would you like Renovate to be able to do? I'm trying to specify a regex for So I turned to the packageRules: [
{
packagePatterns: ["^(?!@abc)"], // i.e. i only want packages like `@abc/xxx` to be checked
enabled: false,
},
], As you can see here, I used the negative lookahead feature of regex, which is unfortunately not supported by Did you already have any implementation ideas? Here's some suggestions and solutions:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You can simply use excludePackagePatterns packageRules: [
{
excludePackagePatterns: ["^@abc\\/"], // i.e. i only want packages like `@abc/xxx` to be checked
enabled: false,
},
], or |
Beta Was this translation helpful? Give feedback.
-
FYI the reason for using re2 is to prevent DDoS attacks, so we're not going to fall back to regular regex for that reason. |
Beta Was this translation helpful? Give feedback.
You can simply use excludePackagePatterns
or