♻️ Restructure: Move Astro to repository root
BREAKING CHANGE: Astro project is now at repository root - Removed dealplustech-astro subdirectory - Moved all Astro files to root - Updated PostCSS config to .cjs - Removed old Next.js files ✅ 11 pages built successfully ✅ Cookie consent banner included ✅ Privacy/Terms links in footer ✅ Ready for Easypanel deployment (no root dir needed) Migration path: - Old structure: /dealplustech-astro/ - New structure: / (root)
This commit is contained in:
27
dealplustech-astro/node_modules/ccount/index.js
generated
vendored
27
dealplustech-astro/node_modules/ccount/index.js
generated
vendored
@@ -1,27 +0,0 @@
|
||||
/**
|
||||
* Count how often a character (or substring) is used in a string.
|
||||
*
|
||||
* @param {string} value
|
||||
* Value to search in.
|
||||
* @param {string} character
|
||||
* Character (or substring) to look for.
|
||||
* @return {number}
|
||||
* Number of times `character` occurred in `value`.
|
||||
*/
|
||||
export function ccount(value, character) {
|
||||
const source = String(value)
|
||||
|
||||
if (typeof character !== 'string') {
|
||||
throw new TypeError('Expected character')
|
||||
}
|
||||
|
||||
let count = 0
|
||||
let index = source.indexOf(character)
|
||||
|
||||
while (index !== -1) {
|
||||
count++
|
||||
index = source.indexOf(character, index + character.length)
|
||||
}
|
||||
|
||||
return count
|
||||
}
|
||||
Reference in New Issue
Block a user