@tryghost/gcs-adapter
Version:
Ghost GCS Storage Adapter
15 lines (13 loc) • 399 B
JavaScript
const REGEX = {
// XML control characters
// https://cloud.google.com/storage/docs/objects#naming
xml: /[\x7F-\x84\x86-\x9F]/g,
// GCS wildcard and versioning characters
// https://cloud.google.com/storage/docs/objects#naming
gcs: /[\[\]*?#]/g,
whitespace: /\s+/g,
slash: /(?<!:)\/\/+|\\+/g,
tpl: /\[([^\[\]]+)\]/g,
path: /[\\/]+/g
};
exports.REGEX = REGEX;