mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-25 01:40:10 +00:00
fix: correctly replace frozen fields in JRS-themed resumes
This commit is contained in:
parent
02f0af1ff8
commit
00067d012a
4
dist/renderers/jrs-generator.js
vendored
4
dist/renderers/jrs-generator.js
vendored
@ -46,8 +46,8 @@ Definition of the JRSGenerator class.
|
|||||||
turnoff.forEach(function(c, idx) {
|
turnoff.forEach(function(c, idx) {
|
||||||
return console[c] = org[idx];
|
return console[c] = org[idx];
|
||||||
});
|
});
|
||||||
return rezHtml = rezHtml.replace(/@@@@~.*?~@@@@/gm, function(val) {
|
return rezHtml = rezHtml.replace(/@@@@~[\s\S]*?~@@@@/g, function(val) {
|
||||||
return MDIN(val.replace(/~@@@@/gm, '').replace(/@@@@~/gm, ''));
|
return MDIN(val.replace(/~@@@@/g, '').replace(/@@@@~/g, ''));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -37,8 +37,8 @@ JRSGenerator = module.exports =
|
|||||||
turnoff.forEach (c, idx) -> console[c] = org[idx]
|
turnoff.forEach (c, idx) -> console[c] = org[idx]
|
||||||
|
|
||||||
# Unfreeze and apply Markdown
|
# Unfreeze and apply Markdown
|
||||||
rezHtml = rezHtml.replace /@@@@~.*?~@@@@/gm, (val) ->
|
rezHtml = rezHtml.replace /@@@@~[\s\S]*?~@@@@/g, (val) ->
|
||||||
MDIN( val.replace( /~@@@@/gm,'' ).replace( /@@@@~/gm,'' ) )
|
MDIN( val.replace( /~@@@@/g,'' ).replace( /@@@@~/g,'' ) )
|
||||||
|
|
||||||
|
|
||||||
MDIN = (txt) -> # TODO: Move this
|
MDIN = (txt) -> # TODO: Move this
|
||||||
|
Loading…
Reference in New Issue
Block a user