Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
nomad-meta-info
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Environments
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nomad-lab
nomad-meta-info
Commits
65db883f
Commit
65db883f
authored
Jul 12, 2018
by
Mohamed, Fawzi Roberto (fawzi)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handle meta_name__unit as used in regexp groups names
parent
361e636e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
meta_info/renames/renamer.py
meta_info/renames/renamer.py
+3
-1
No files found.
meta_info/renames/renamer.py
View file @
65db883f
...
@@ -35,7 +35,7 @@ def renamesSearchRe(renames):
...
@@ -35,7 +35,7 @@ def renamesSearchRe(renames):
else
:
else
:
first
=
False
first
=
False
res
.
write
(
k
)
res
.
write
(
k
)
res
.
write
(
r
")
\b
"
)
res
.
write
(
r
")
(__|\b)
"
)
renameReStr
=
res
.
getvalue
()
renameReStr
=
res
.
getvalue
()
return
re
.
compile
(
renameReStr
)
return
re
.
compile
(
renameReStr
)
...
@@ -59,6 +59,8 @@ def replaceInFile(filePath, replacements):
...
@@ -59,6 +59,8 @@ def replaceInFile(filePath, replacements):
didReplace
[
old
]
=
didReplace
.
get
(
old
,
[])
+
[
lineNr
]
didReplace
[
old
]
=
didReplace
.
get
(
old
,
[])
+
[
lineNr
]
outF
.
write
(
line
[
ii
:
m
.
start
()])
outF
.
write
(
line
[
ii
:
m
.
start
()])
outF
.
write
(
replacements
[
old
])
outF
.
write
(
replacements
[
old
])
if
m
.
group
(
2
):
outF
.
write
(
m
.
group
(
2
))
ii
=
m
.
end
()
ii
=
m
.
end
()
outF
.
write
(
line
[
ii
:])
outF
.
write
(
line
[
ii
:])
if
didReplace
:
if
didReplace
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment