Skip to content

Commit

Permalink
Use raw strings when specifying regular expressions (#1038)
Browse files Browse the repository at this point in the history
  • Loading branch information
cottsay authored Apr 4, 2024
1 parent d6df50a commit 7ad8967
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ros_buildfarm/templates/release/deb/binarypkg_job.xml.em
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ but disabled since the package is blacklisted (or not whitelisted) in the config
))@
@(SNIPPET(
'publisher_description-setter',
regexp="Package '[^']+' version: (\S+)",
regexp=r"Package '[^']+' version: (\S+)",
# to prevent overwriting the description of failed builds
regexp_for_failed='ThisRegExpShouldNeverMatch',
))@
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<publishers>
@(SNIPPET(
'publisher_description-setter',
regexp='Importing package: (\S+)',
regexp=r'Importing package: (\S+)',
# to prevent overwriting the description of failed builds
regexp_for_failed='ThisRegExpShouldNeverMatch',
))@
Expand Down
2 changes: 1 addition & 1 deletion ros_buildfarm/templates/release/deb/sourcepkg_job.xml.em
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ but disabled since the package is blacklisted (or not whitelisted) in the config
<publishers>
@(SNIPPET(
'publisher_description-setter',
regexp="Package '[^']+' version: (\S+)",
regexp=r"Package '[^']+' version: (\S+)",
# to prevent overwriting the description of failed builds
regexp_for_failed='ThisRegExpShouldNeverMatch',
))@
Expand Down
2 changes: 1 addition & 1 deletion ros_buildfarm/templates/release/rpm/binarypkg_job.xml.em
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ but disabled since the package is blacklisted (or not whitelisted) in the config
))@
@(SNIPPET(
'publisher_description-setter',
regexp="Package '[^']+' version: (\S+)",
regexp=r"Package '[^']+' version: (\S+)",
# to prevent overwriting the description of failed builds
regexp_for_failed='ThisRegExpShouldNeverMatch',
))@
Expand Down
2 changes: 1 addition & 1 deletion ros_buildfarm/templates/release/rpm/sourcepkg_job.xml.em
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ but disabled since the package is blacklisted (or not whitelisted) in the config
<publishers>
@(SNIPPET(
'publisher_description-setter',
regexp="Package '[^']+' version: (\S+)",
regexp=r"Package '[^']+' version: (\S+)",
# to prevent overwriting the description of failed builds
regexp_for_failed='ThisRegExpShouldNeverMatch',
))@
Expand Down

0 comments on commit 7ad8967

Please sign in to comment.