Created
December 21, 2020 06:45
-
-
Save MichaelHabib/c1943d4fb6d22eb18189aeb3b0b3e5ba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: MH_Seadan_Snippets | |
description: '' | |
host: EXCEL | |
api_set: {} | |
script: | |
content: | | |
/** @CustomFunction */ | |
function regex_format_sku(value) { | |
if (!value) { | |
return ""; | |
} | |
return value | |
.toString() | |
.toLowerCase() | |
.replace(/\//g, "_") | |
.replace(/[^a-z0-9\-\/\_]/g, "-"); | |
} | |
language: typescript | |
libraries: | | |
https://appsforoffice.microsoft.com/lib/1/hosted/office.js | |
@types/office-js | |
[email protected]/dist/css/fabric.min.css | |
[email protected]/dist/css/fabric.components.min.css | |
[email protected]/client/core.min.js | |
@types/core-js | |
[email protected] | |
@types/[email protected] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment