UNPKG

@shopify/theme-language-server-common

Version:

<h1 align="center" style="position: relative;" > <br> <img src="https://github.com/Shopify/theme-check-vscode/blob/main/images/shopify_glyph.png?raw=true" alt="logo" width="141" height="160"> <br> Theme Language Server </h1>

14 lines 776 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isAsset = exports.assetName = exports.isSnippet = exports.snippetName = void 0; const theme_check_common_1 = require("@shopify/theme-check-common"); const snippetName = (uri) => theme_check_common_1.path.basename(uri, '.liquid'); exports.snippetName = snippetName; const isSnippet = (uri) => /\bsnippets(\\|\/)[^\\\/]*\.liquid/.test(uri); exports.isSnippet = isSnippet; // asset urls have their `.liquid`` removed (if present) and require the other extension */ const assetName = (uri) => theme_check_common_1.path.basename(uri, '.liquid'); exports.assetName = assetName; const isAsset = (uri) => /\bassets(\\|\/)[^\\\/]/.test(uri); exports.isAsset = isAsset; //# sourceMappingURL=uri.js.map