remove some obsolete debug code
This commit is contained in:
parent
35e30abd69
commit
85d5d2c2fc
@ -8,17 +8,13 @@ import * as express from 'express'
|
||||
|
||||
function getPageOptions(contentStr: string) : any {
|
||||
let pageOptions : any = {}
|
||||
// logger.info(`contentStr: ${contentStr}`)
|
||||
try {
|
||||
let lines = contentStr.split("\n")
|
||||
let firstLine = lines[0]
|
||||
// logger.info(`firstLine: ${firstLine}`)
|
||||
let pageOptionsStr = firstLine.replace(/^\s*<!-- (\{.+\}) -->[\s\S]*$/, "\$1")
|
||||
// logger.info(`pageOptionsStr: ${pageOptionsStr}`)
|
||||
pageOptions = JSON.parse(pageOptionsStr)
|
||||
// logger.info(JSON.stringify(pageOptions))
|
||||
} catch {
|
||||
// logger.info("No pageOptions found")
|
||||
logger.info("No pageOptions found")
|
||||
}
|
||||
return pageOptions
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user