mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
Fix regex for capturing category names
This commit is contained in:
parent
9f6e1e081c
commit
9210f6ef72
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ enSource = fs.readFileSync(path.join(__dirname, '../app/locale/en.coffee'), enco
|
|||
commentsMap = {}
|
||||
|
||||
categorySplitPattern = /^[\s\n]*(?=[^:\n]+:\s*$)/gm
|
||||
categoryCapturePattern = /^[\s\n]*([^:\n]+):\s*$/gm
|
||||
categoryCapturePattern = /^([^:\n]+):\s*\n/
|
||||
commentPattern = /^[\s\n]*([^:\n]+):\s*"[^#\n"]+"\s*#(.*)$/gm
|
||||
|
||||
splitByCategories = enSource.split(categorySplitPattern)
|
||||
|
|
Loading…
Reference in a new issue