guessit-js
Version:
GuessIt JS (WASM) - Extract metadata from video filenames with WebAssembly performance
21 lines (17 loc) • 362 B
JavaScript
/**
* Path structure markers
*/
import { Rule } from '../rebulk.js';
export function pathRules(config) {
const rules = [];
// Basic path structure detection
rules.push(new Rule(
/([^\/\\]+)/g,
{
name: 'path',
private: true,
tags: ['path-segment']
}
));
return rules;
}