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() {
ExperimentalReportController.prototype.normalizeProposalName = function (proposalName) {
try {
// extract the proposal LetterCode (before the hyphen) and the digits (after the hyphen)
var aroundHyphenRegExp = new RegExp(/^(.*)-(.*)/);
return {
categoryCode: aroundHyphenRegExp.exec(proposalName)[1],
categoryCounter: aroundHyphenRegExp.exec(proposalName)[2]
};
var aroundHyphenRegExp;
try {
// extract the proposal LetterCode (before the hyphen) and the digits (after the hyphen)
aroundHyphenRegExp = new RegExp(/^(.*)-(.*)/);
return {
categoryCode: aroundHyphenRegExp.exec(proposalName)[1],
categoryCounter: aroundHyphenRegExp.exec(proposalName)[2]
};
} catch (e) {
/** 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
* 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