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