1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2025-05-02 12:27:08 +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

@ -46,8 +46,8 @@ Definition of the JRSGenerator class.
turnoff.forEach(function(c, idx) {
return console[c] = org[idx];
});
return rezHtml = rezHtml.replace(/@@@@~.*?~@@@@/gm, function(val) {
return MDIN(val.replace(/~@@@@/gm, '').replace(/@@@@~/gm, ''));
return rezHtml = rezHtml.replace(/@@@@~[\s\S]*?~@@@@/g, function(val) {
return MDIN(val.replace(/~@@@@/g, '').replace(/@@@@~/g, ''));
});
}
};