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

swupdate-common.bbclass: Update regex for variable matching #28

Open
wants to merge 1 commit into
base: kirkstone
Choose a base branch
from

Conversation

jrripple
Copy link

@jrripple jrripple commented Feb 5, 2024

  • Changed the regex conditions so @@ symbols can be at the start or end of lines without any other characters around them. This allows bitbake variables to be replaced at the start or end of a line, not just in the middle.

For example:

test = @@var@@

This didn't work because .+ regex expects one or more of the previous characters, and the start or end of a line does not meet these conditions. Using .* requires zero or more of the previous character so putting variables at the start and end of lines is now possible.

+ Changed the regex conditions so @@ symbols can be at the start or end
of lines without any other characters around them. This allows bitbake
variables to be replaced at the start or end of a line, not just in the
middle.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant