static-web-apps-cli
static-web-apps-cli copied to clipboard
Fixing globs in routes
This pull request includes changes to improve the behavior of the globToRegExp function in the src/core/utils/glob.ts file. The function now correctly interprets the * character as a wildcard and escapes the . character to match a literal dot. Additionally, the expected result in the test case for globToRegExp was modified to reflect the updated behavior of the function.
Main changes:
src/core/utils/glob.ts: Modified theglobToRegExpfunction to correctly interpret the*character as a wildcard and escape the.character to match a literal dot.src/core/utils/glob.spec.ts: Modified the expected result in the test case forglobToRegExpto include the escaped dot character (\.) to match the updated behavior of the function.
Fixes #792