Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(regex): don’t escape forward slash in fileMatch #19314

Merged
merged 14 commits into from
Jan 30, 2023

Conversation

rarkins
Copy link
Collaborator

@rarkins rarkins commented Dec 8, 2022

Changes

Removes unnecessary forward slash escaping.

Context

Closes #19312

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

@rarkins rarkins requested review from viceice and JamieMagee December 8, 2022 12:25
Copy link
Member

@viceice viceice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should search for additional \\/ to replace

lib/modules/manager/flux/common.ts Outdated Show resolved Hide resolved
lib/modules/manager/fvm/index.ts Outdated Show resolved Hide resolved
lib/modules/manager/gradle/index.ts Outdated Show resolved Hide resolved
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
@Churro
Copy link
Collaborator

Churro commented Dec 8, 2022

This branch doesn't yet see two more patterns that PR #19182 introduced in lib/modules/manager/gradle/index.ts just today. Probably also worth considering in this PR👍

@rarkins
Copy link
Collaborator Author

rarkins commented Dec 8, 2022

Now replaced all, but I'd like to be paranoid and have multiple eyes on this.

Copy link
Member

@viceice viceice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise LGTM

lib/config/options/index.ts Show resolved Hide resolved
viceice
viceice previously approved these changes Dec 9, 2022
@rarkins
Copy link
Collaborator Author

rarkins commented Dec 9, 2022

@JamieMagee another set of eyes please :)

JamieMagee
JamieMagee previously approved these changes Dec 9, 2022
Copy link
Contributor

@JamieMagee JamieMagee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks okay, but we might need to document the trimming of / in regex patterns. The standard1 says that the first character of a regex is the delimiter, but the delimiter can be any character. / is just a convention, but I've seen #, @, etc. used, which makes it easier when / is a part of the pattern you're trying to match.

Footnotes

  1. https://en.wikipedia.org/wiki/Regular_expression#Delimiters

@rarkins
Copy link
Collaborator Author

rarkins commented Dec 9, 2022

I think we've mentioned that / ... / or !/ ... / are our conventions whenever a field supports it, but we can double check

# Conflicts:
#	lib/config/presets/internal/monorepo.ts
#	lib/modules/manager/woodpecker/index.ts
@rarkins rarkins dismissed stale reviews from JamieMagee and viceice via fe060df January 23, 2023 10:06
@rarkins rarkins changed the base branch from main to v35 January 23, 2023 10:08
@rarkins
Copy link
Collaborator Author

rarkins commented Jan 23, 2023

Non-breaking but will release it as part of v35 just in case

RahulGautamSingh and others added 5 commits January 29, 2023 07:12
Changes `rangeStrategy` default value from `'replace'` to `'auto'`.

Changes `auto` behavior so that `update-lockfile` is preferred if the manager supports the `updateLockedDependency()` function.

Closes #19800

BREAKING CHANGE: Renovate will now default to updating locked dependency versions. To revert to previous behavior, configure rangeStrategy=replace.
…9958)

Sets new defaults:
- `prConcurrentLimit`: 10 (instead of 0)
- `prHourlyLimit`: 2 (instead of 0)

Closes #19800

BREAKING CHANGE: Renovate now defaults to applying hourly and concurrent PR limits. To revert to unlimited, configure them back to `0`.
Set default GOPROXY value to match `go`'s own default.

Closes #20040

BREAKING CHANGE: Renovate will now use go's default `GOPROXY` settings. To avoid using the public proxy, configure `GOPROXY=direct`.
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
@rarkins rarkins requested a review from viceice January 29, 2023 15:59
@JamieMagee JamieMagee added the v35 label Jan 30, 2023
@JamieMagee
Copy link
Contributor

There are some docs updates, but they won't block code changes:

@rarkins rarkins requested review from JamieMagee and viceice January 30, 2023 05:53
@rarkins rarkins merged commit 1a88ee0 into v35 Jan 30, 2023
@rarkins rarkins deleted the fix/19312-file-match-forward-slash branch January 30, 2023 06:37
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent escaping in fileMatch
5 participants