Extract more uses of the indent regex (flutter/engine#3337)

In cd79979fb, we extracted a regular expression matching licence
indentation. This patch extracts two more instances.
This commit is contained in:
Chris Bracken
2017-01-13 15:31:05 -08:00
committed by GitHub
parent 633c3e25db
commit 76a1339755

View File

@@ -327,7 +327,7 @@ final List<LicenseFileReferencePattern> csReferencesByFilename = <LicenseFileRef
authorIndex: 4,
fileIndex: 5,
pattern: new RegExp(
r'^(((?:[-;#<!.\\"/* ]*(?:REM[-;#<!.\\"/* ]*)?[-;#<!.\"/*]+)?)( *)' +
r'(' + kIndent +
r'Copyright .+(the .+ authors)\[?\. '
r'Please see the AUTHORS file for details. All rights (?:re|solve)served\. '
r'Use of this source(?: code)? is governed by a BS?D-style license '
@@ -1858,7 +1858,7 @@ final List<ForwardReferencePattern> csForwardReferenceLicenses = <ForwardReferen
firstPrefixIndex: 1,
indentPrefixIndex: 2,
pattern: new RegExp(
r'((?:[-;#<!.\\"/* ]*(?:REM[-;#<!.\\"/* ]*)?[-;#<!.\"/*]+)?)( *)Use is subject to license terms\.$',
kIndent + r'Use is subject to license terms\.$',
multiLine: true,
caseSensitive: false,
),