diff options
Diffstat (limited to 'python/servo/bootstrap_commands.py')
-rw-r--r-- | python/servo/bootstrap_commands.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/servo/bootstrap_commands.py b/python/servo/bootstrap_commands.py index 23d807fdb0e..b6c9143f5a8 100644 --- a/python/servo/bootstrap_commands.py +++ b/python/servo/bootstrap_commands.py @@ -251,7 +251,7 @@ class MachCommands(CommandBase): # The chromium "json" has single line comments in it which, of course, # are non-standard/non-valid json. Simply strip them out before parsing - content_json = re.sub(r'//.*$', '', content_decoded, flags=re.MULTILINE) + content_json = re.sub(r'(^|\s+)//.*$', '', content_decoded, flags=re.MULTILINE) try: pins_and_static_preloads = json.loads(content_json) |