Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
e151a1a4
Commit
e151a1a4
authored
Feb 09, 2017
by
Alexandre Ardhuin
Committed by
Adam Barth
Feb 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prefer_contains (#8040)
parent
60f5cbba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
utils.dart
dev/devicelab/lib/framework/utils.dart
+2
-2
daemon.dart
packages/flutter_tools/lib/src/commands/daemon.dart
+1
-1
No files found.
dev/devicelab/lib/framework/utils.dart
View file @
e151a1a4
...
...
@@ -125,9 +125,9 @@ Future<String> getDartVersion() async {
// Dart VM version: 1.17.0-dev.2.0 (Tue May 3 12:14:52 2016) on "macos_x64"
// to:
// 1.17.0-dev.2.0
if
(
version
.
indexOf
(
'('
)
!=
-
1
)
if
(
version
.
contains
(
'('
)
)
version
=
version
.
substring
(
0
,
version
.
indexOf
(
'('
)).
trim
();
if
(
version
.
indexOf
(
':'
)
!=
-
1
)
if
(
version
.
contains
(
':'
)
)
version
=
version
.
substring
(
version
.
indexOf
(
':'
)
+
1
).
trim
();
return
version
.
replaceAll
(
'"'
,
"'"
);
...
...
packages/flutter_tools/lib/src/commands/daemon.dart
View file @
e151a1a4
...
...
@@ -127,7 +127,7 @@ class Daemon {
try
{
String
method
=
request
[
'method'
];
if
(
method
.
indexOf
(
'.'
)
==
-
1
)
if
(
!
method
.
contains
(
'.'
)
)
throw
'method not understood:
$method
'
;
String
prefix
=
method
.
substring
(
0
,
method
.
indexOf
(
'.'
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment