Skip to content
Myr

Fixed absolute path checking on windows. Closes #829 [reported by andrewpmckenzie]

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent a25ef01 · Browse files · 2 files+15 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+15 added−1 removed

  • other:+15 added−1 removed

2 files+15 added−1 removed

modified:lib/view/view.js+2 added-1 removed
8 unmodified lines
9 * Module dependencies.10 */1112var path = require('path')13 , utils = require('../utils')14 , extname = path.extname15 , dirname = path.dirname16 , basename = path.basename17 , fs = require('fs')
81 unmodified lines
99 var path = this.view;100 // Implicit engine101 if (!~this.basename.indexOf('.')) path += this.extension;102 // Absolute102 if ('/' == path[0]) return path;103 if (utils.isAbsolute(path)) return path;104 // Relative to parent105 if (this.relative && this.parent) return this.parent.dirname + '/' + path;106 // Relative to root107 return this.root
103 unmodified lines
modified:lib/utils.js+13 added