From 8b4f1e13836f49ec377eb512fe084d392a89d700 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Wed, 5 Feb 2014 09:03:31 -0800 Subject: [PATCH] Fix `basename` in perf/perf.js. [ci skip] --- perf/perf.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/perf/perf.js b/perf/perf.js index 644975a42..2f724059c 100644 --- a/perf/perf.js +++ b/perf/perf.js @@ -52,6 +52,15 @@ return result; }()); + /** Used to match path separators */ + var rePathSeparator = /[\/\\]/; + + /** Used to detect primitive types */ + var rePrimitive = /^(?:boolean|number|string|undefined)$/; + + /** Used to match RegExp special characters */ + var reSpecialChars = /[.*+?^=!:${}()|[\]\/\\]/g; + /** The `ui` object */ var ui = root.ui || (root.ui = { 'buildPath': basename(filePath, '.js'), @@ -67,15 +76,6 @@ return result + (result == buildName ? ' (2)' : ''); }()); - /** Used to match path separators */ - var rePathSeparator = /[\/\\]/; - - /** Used to detect primitive types */ - var rePrimitive = /^(?:boolean|number|string|undefined)$/; - - /** Used to match RegExp special characters */ - var reSpecialChars = /[.*+?^=!:${}()|[\]\/\\]/g; - /** Used to score performance */ var score = { 'a': [], 'b': [] };