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
| #!/bin/bash | |
| # Define an array of default branch names | |
| DEFAULT_BRANCHES=("master" "main" "develop" "dev") | |
| # Get the current branch name | |
| BRANCH_NAME=$(git symbolic-ref --short HEAD) | |
| BRANCH_NAME_MSG="" | |
| STAGED_FILES=$(git diff --cached --name-only) |
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
| export const getElementCreator = () => { | |
| const doc = document; | |
| const DIRECT_SET_ATTRIBUTES = | |
| "textContent|innerText|innerHTML|className|value|style|checked|selected|src|srcdoc|srcset|tabindex|target" | |
| .split("|") | |
| .reduce((agg, next) => { | |
| agg[next] = 1; | |
| return agg; | |
| }, {}); |