Skip to content

Commit 05b9bc7

Browse files
author
Dan BROOKS
committed
fix(Windows): All tests pass with team whitespace rules (hapi-swagger#381)
1 parent 5468b13 commit 05b9bc7

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

.editorconfig

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# top-most EditorConfig file
2+
root = true
3+
4+
# Unix-style newlines with a newline ending every file
5+
[*]
6+
end_of_line = lf
7+
insert_final_newline = true
8+
charset = utf-8
9+
10+
[*.md]
11+
indent_style = space
12+
indent_size = 4
13+
14+
[*.{js,json}]
15+
indent_style = space
16+
indent_size = 4
17+
trim_trailing_whitespace = true
18+
max_line_length = 120
19+
20+
[package.json]
21+
insert_final_newline = false

.gitattributes

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*.js eol=lf
2+
*.json eol=lf
3+
*.sh eol=lf
4+
*.md eol=lf
5+
*.conf eol=lf

lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ exports.register = function (plugin, options, next) {
190190
if (settings.debug === true) {
191191
pluginWithDependencies.route([{
192192
method: 'GET',
193-
path: settings.documentationPath + Path.sep + 'debug',
193+
path: Path.join(settings.documentationPath, Path.sep, 'debug').split(Path.sep).join('/'),
194194
config: {
195195
auth: settings.auth
196196
},

0 commit comments

Comments
 (0)