mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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:
parent
b3ed79122e
commit
ea78d625ea
@ -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,
|
||||
),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user