1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2025-05-10 07:47:07 +01:00

fix: correctly replace frozen fields in JRS-themed resumes

This commit is contained in:
hacksalot
2018-02-03 16:15:17 -05:00
parent 02f0af1ff8
commit 00067d012a
2 changed files with 4 additions and 4 deletions

View File

@ -37,8 +37,8 @@ JRSGenerator = module.exports =
turnoff.forEach (c, idx) -> console[c] = org[idx]
# Unfreeze and apply Markdown
rezHtml = rezHtml.replace /@@@@~.*?~@@@@/gm, (val) ->
MDIN( val.replace( /~@@@@/gm,'' ).replace( /@@@@~/gm,'' ) )
rezHtml = rezHtml.replace /@@@@~[\s\S]*?~@@@@/g, (val) ->
MDIN( val.replace( /~@@@@/g,'' ).replace( /@@@@~/g,'' ) )
MDIN = (txt) -> # TODO: Move this