const s=new RegExp("((?!@i18n\\/|@l10n\\/)\\/?@.*?(?=\\/))","g");function l(n){if(n.match(s)?.length!==1)return null;const[i,e,t]=n.split(new RegExp("(?:^@(?:i18n|l10n)\\/)?(.*?\\/?)@(.*)")),[o,r]=t.split(new RegExp("\\/(.*)","s"));return{versionFolderPath:e||"/",filePathInVersion:r,versionName:o}}export{l as parsePathVersions};
