MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / isAbsolutePath

Function isAbsolutePath

node/opencc.js:114–116  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

112
113const assetsPath = getAssetsPath(bindingPath);
114const isAbsolutePath = function (filePath) {
115 return path.isAbsolute(filePath) || /^[A-Za-z]:[\\/]/.test(filePath);
116};
117
118const getConfigPath = function (config) {
119 let configPath = config;

Callers 2

getConfigPathFunction · 0.85
resolveJiebaConfigPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected