UNPKG

@specs-feup/lara

Version:

A js port of the popular framework for building source-to-source compilers

12 lines 418 B
import Strings from "../Strings.js"; export default class ToolUtils { static parsePath(path) { // Ensure paths use / instead of \ // Using regular expression in order to replace all let parsedPath = path.toString().replace(/\\/g, "/"); // Escape characters parsedPath = Strings.escapeJson(parsedPath); return parsedPath; } } //# sourceMappingURL=ToolUtils.js.map