7 lines
143 B
JavaScript
7 lines
143 B
JavaScript
![]() |
"use strict";
|
||
|
module.exports = function ensureEndingSlash(path) {
|
||
|
return /(\.html|\/)$/.test(path)
|
||
|
? path
|
||
|
: path + '/';
|
||
|
};
|