mirror of
https://github.com/requarks/wiki.git
synced 2025-02-25 18:55:30 -06:00
This excludes the trailing slash from the locale code.
This commit is contained in:
parent
aa5368b2a1
commit
a457e82b16
@ -4,7 +4,7 @@ const crypto = require('crypto')
|
||||
const path = require('path')
|
||||
|
||||
const localeSegmentRegex = /^[A-Z]{2}(-[A-Z]{2})?$/i
|
||||
const localeFolderRegex = /^([a-z]{2}(?:-[a-z]{2})?\/)?(.*)/i
|
||||
const localeFolderRegex = /^([a-z]{2}(?:-[a-z]{2})?)\/?(.*)/i
|
||||
|
||||
const contentToExt = {
|
||||
markdown: 'md',
|
||||
|
Loading…
Reference in New Issue
Block a user