code: function buildTraceOrDebugFlag(parsoidFlags, logType) {
  		var escapedFlags = Array.from(parsoidFlags).map(JSUtils.escapeRegExp);
  		var combinedFlag = logType + "\/(" + escapedFlags.join("|") + ")(\\/|$)";
  		return new RegExp(combinedFlag);
  	}
docs: TRACE / DEBUG: Make trace / debug regexp with appropriate postfixes, depending on the command-line options passed in.