# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
I've verified that it matches the regex the error says doesn't match. I first thought it could be because of line endings (this is on Windows) but I also verified that all lines end with \n.
>>> re.match(regex, file_text).group(0)
'# Copyright 2018 The Chromium Authors. All rights reserved.\n# Use of this source code is governed by a BSD-style license that can be\n# found in the LICENSE file.\n'
However when I run upload I get this:
** Presubmit Warnings **
License must match:
.*? Copyright (\(c\) )?(2018|2017|2016|2015|2014|2013|2012|2011|2010|2009|2008|2007|2006|2006-2008|2006-2009|2006-2010) The Chromium Authors\. All rights reserved\.\n.*? Use of this source code is governed by a BSD-style license that can be\n.*? found in the LICENSE file\.(?: \*/)?\n
Found a bad license header in these files:
chrome\test\mini_installer\test_chrome_with_chromedriver.py
Presubmit checks took 3.8s to calculate.
There were presubmit warnings. Are you sure you wish to continue? (y/N):
Is it safe to ignore this warning? Could there be a bug here? Is there something I am missing?
Thanks,
Mike
--