bye printdebug
This commit is contained in:
parent
0e299518f1
commit
df9d407c22
5 changed files with 8 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
||||||
# angel_route
|
# angel_route
|
||||||
|
|
||||||
![version 1.0.0-dev+18](https://img.shields.io/badge/version-1.0.0--dev+18-red.svg)
|
![version 1.0.0-dev+19](https://img.shields.io/badge/version-1.0.0--dev+19-red.svg)
|
||||||
![build status](https://travis-ci.org/angel-dart/route.svg)
|
![build status](https://travis-ci.org/angel-dart/route.svg)
|
||||||
|
|
||||||
A powerful, isomorphic routing library for Dart.
|
A powerful, isomorphic routing library for Dart.
|
||||||
|
|
|
@ -127,7 +127,7 @@ class Route {
|
||||||
}
|
}
|
||||||
|
|
||||||
void _printDebug(msg) {
|
void _printDebug(msg) {
|
||||||
if (debug == true) print(msg);
|
// if (debug == true) print(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
Route._base();
|
Route._base();
|
||||||
|
@ -340,8 +340,8 @@ class Route {
|
||||||
matcher.firstMatch(path.replaceAll(_straySlashes, ''));
|
matcher.firstMatch(path.replaceAll(_straySlashes, ''));
|
||||||
|
|
||||||
/// Extracts route parameters from a given path.
|
/// Extracts route parameters from a given path.
|
||||||
Map parseParameters(String requestPath) {
|
Map<String, String> parseParameters(String requestPath) {
|
||||||
Map result = {};
|
Map<String, String> result = {};
|
||||||
|
|
||||||
Iterable<String> values =
|
Iterable<String> values =
|
||||||
_parseParameters(requestPath.replaceAll(_straySlashes, ''));
|
_parseParameters(requestPath.replaceAll(_straySlashes, ''));
|
||||||
|
|
|
@ -38,7 +38,7 @@ class Router extends Extensible {
|
||||||
Router({this.debug: false});
|
Router({this.debug: false});
|
||||||
|
|
||||||
void _printDebug(msg) {
|
void _printDebug(msg) {
|
||||||
if (debug == true) print(msg);
|
// if (debug == true) print(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Adds a route that responds to the given path
|
/// Adds a route that responds to the given path
|
||||||
|
@ -66,7 +66,7 @@ class Router extends Extensible {
|
||||||
/// Returns a [Router] with a duplicated version of this tree.
|
/// Returns a [Router] with a duplicated version of this tree.
|
||||||
Router clone() {
|
Router clone() {
|
||||||
final router = new Router(debug: debug);
|
final router = new Router(debug: debug);
|
||||||
final newMounted = new Map.from(mounted);
|
final newMounted = new Map<Pattern, Router>.from(mounted);
|
||||||
|
|
||||||
for (Route route in routes) {
|
for (Route route in routes) {
|
||||||
if (route is! SymlinkRoute) {
|
if (route is! SymlinkRoute) {
|
||||||
|
|
|
@ -59,7 +59,7 @@ class RoutingResult {
|
||||||
|
|
||||||
/// All parameters on this sub-path and its children.
|
/// All parameters on this sub-path and its children.
|
||||||
Map<String, dynamic> get allParams {
|
Map<String, dynamic> get allParams {
|
||||||
final params = {};
|
final Map<String, dynamic> params = {};
|
||||||
var search = this;
|
var search = this;
|
||||||
|
|
||||||
while (search != null) {
|
while (search != null) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: angel_route
|
name: angel_route
|
||||||
description: A powerful, isomorphic routing library for Dart.
|
description: A powerful, isomorphic routing library for Dart.
|
||||||
version: 1.0.0-dev+18
|
version: 1.0.0-dev+19
|
||||||
author: Tobe O <thosakwe@gmail.com>
|
author: Tobe O <thosakwe@gmail.com>
|
||||||
homepage: https://github.com/angel-dart/angel_route
|
homepage: https://github.com/angel-dart/angel_route
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
|
|
Loading…
Reference in a new issue