- Create a .gitignore file in the git repository if it does not contain one
touch .gitignore
2. Open up the .gitignore and add the following line to the file
node_modules 3. Remove the node_modules folder from the git repository
function makeTitle(slug) { | |
var words = slug.split('-'); | |
for (var i = 0; i < words.length; i++) { | |
var word = words[i]; | |
words[i] = word.charAt(0).toUpperCase() + word.slice(1); | |
} | |
return words.join(' '); | |
} | |
// makeTitle(lorem-ipsum) expected output: Lorem Ipsum |
function stringToSlug (str) { | |
str = str.replace(/^\s+|\s+$/g, ''); | |
str = str.toLowerCase(); | |
var from = 'àáäâèéëêìíïîòóöôùúüûñç·/_,:;'; | |
var to = 'aaaaeeeeiiiioooouuuunc------'; | |
for (var i = 0, l = from.length; i < l; i++) { | |
str = str.replace(new RegExp(from.charAt(i), 'g'), to.charAt(i)); | |
} | |
str = str.replace(/[^a-z0-9 -]/g, '') | |
.replace(/\s+/g, '-') |
const allDom = document.querySelectorAll('*') | |
let el | |
for (let i = 0; i < all.length; i++) { | |
if (allDom[i].__vue__) { | |
el = allDom[i] | |
console.log(el, "This is the vue element") | |
break | |
} | |
} | |
if (el) { |
{"version":1,"resource":"file:///Users/shamim/projects/payform/wp-content/plugins/wp-payment-form/readme.txt","entries":[{"id":"fdxp.txt","timestamp":1650026265781},{"id":"gWKa.txt","timestamp":1650026315715}]} |
// polyfill for matchAll | |
function matchAllPolyfill(regexPattern, sourceString) { | |
let output = [] | |
let match | |
// make sure the pattern has the global flag | |
let regexPatternWithGlobal = RegExp(regexPattern, "g") | |
while (match = regexPatternWithGlobal.exec(sourceString)) { | |
delete match.input | |
output.push(match) | |
} |
{"lastUpload":"2020-01-27T07:56:21.356Z","extensionVersion":"v3.4.3"} |