Commit c610c630 authored by mlippautz's avatar mlippautz Committed by Commit bot

[tools] Fix regexp grepping for GC NVP float values.

R=ulan@chromium.org

Review URL: https://codereview.chromium.org/1422543005

Cr-Commit-Position: refs/heads/master@{#31448}
parent 2803a3d3
...@@ -12,7 +12,7 @@ import re ...@@ -12,7 +12,7 @@ import re
def split_nvp(s): def split_nvp(s):
t = {} t = {}
for (name, value) in re.findall(r"(\w+)=([-\w]+)", s): for (name, value) in re.findall(r"(\w+)=([-\w]+(?:\.[0-9]+)?)", s):
try: try:
t[name] = float(value) t[name] = float(value)
except ValueError: except ValueError:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment