From ffa715042c3df94207e39fc45cbc36cf20c5ecaa Mon Sep 17 00:00:00 2001 From: Richard Gustin Date: Fri, 20 Jun 2014 03:24:15 +1000 Subject: [PATCH] hotfix(windows): Support windows paths for autoRoute --- controller.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controller.js b/controller.js index c9af9ce..e5160f9 100644 --- a/controller.js +++ b/controller.js @@ -98,7 +98,7 @@ module.exports = Class.extend( while( stack.length > 0 && extendingFilePath === false ) { var file = stack.shift(); if ( !/clever-controller/ig.test( file ) && !/uberclass/ig.test( file ) ) { - if ( /\(([^\[\:]+).*\)/ig.test( file ) ) { + if ( /.*\(([^\)]+)\:.*\:.*\)/ig.test( file ) ) { extendingFilePath = RegExp.$1; extendingFileName = path.basename( extendingFilePath ); } diff --git a/package.json b/package.json index e27234f..33e2fdc 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "clever-controller", "description": "Lightning-fast flexible controller prototype", - "version": "1.1.3", + "version": "1.1.4", "private": false, "repository": { "type": "git",