First pass at a requirement diagram.

This commit is contained in:
Josh Sharpe
2021-02-23 23:26:37 -05:00
parent 1f523ee843
commit 55251e1024
22 changed files with 2983 additions and 1305 deletions

View File

@@ -74,11 +74,28 @@ const placeholderToBreak = s => {
return s.replace(/#br#/g, '<br/>');
};
const getUrl = useAbsolute => {
let url = '';
if (useAbsolute) {
url =
window.location.protocol +
'//' +
window.location.host +
window.location.pathname +
window.location.search;
url = url.replace(/\(/g, '\\(');
url = url.replace(/\)/g, '\\)');
}
return url;
};
export default {
getRows,
sanitizeText,
hasBreaks,
splitBreaks,
lineBreakRegex,
removeScript
removeScript,
getUrl
};