Extract more uses of the indent regex (#3337)

In 54d1913d9, 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 b3ed79122e
commit ea78d625ea

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,
),