Commit a9df75cf authored by Alejandro De Maria Antolinos's avatar Alejandro De Maria Antolinos
Browse files

It is minified now

parent 23c2094d
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -8,17 +8,18 @@ function ExperimentalReportController() { ...@@ -8,17 +8,18 @@ function ExperimentalReportController() {
ExperimentalReportController.prototype.normalizeProposalName = function (proposalName) { ExperimentalReportController.prototype.normalizeProposalName = function (proposalName) {
try { var aroundHyphenRegExp;
// extract the proposal LetterCode (before the hyphen) and the digits (after the hyphen) try {
var aroundHyphenRegExp = new RegExp(/^(.*)-(.*)/); // extract the proposal LetterCode (before the hyphen) and the digits (after the hyphen)
return { aroundHyphenRegExp = new RegExp(/^(.*)-(.*)/);
categoryCode: aroundHyphenRegExp.exec(proposalName)[1], return {
categoryCounter: aroundHyphenRegExp.exec(proposalName)[2] categoryCode: aroundHyphenRegExp.exec(proposalName)[1],
}; categoryCounter: aroundHyphenRegExp.exec(proposalName)[2]
};
} catch (e) { } catch (e) {
/** It is most likely that symbol '-' is not present in the proposal name then we use /\d+$/ */ /** It is most likely that symbol '-' is not present in the proposal name then we use /\d+$/ */
var aroundHyphenRegExp = new RegExp( /\d+$/); aroundHyphenRegExp = new RegExp( /\d+$/);
/** This will get all numbers at the end of the string /** This will get all numbers at the end of the string
* Example: input=mx3030 then output[0]=3030 * Example: input=mx3030 then output[0]=3030
*/ */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment