mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 00:12:08 +08:00
Fix #6038.
This commit is contained in:
@@ -36,12 +36,11 @@ const applyRegex = function(regex, target, data, replacement, groupCount) {
|
||||
function newRow(row) {
|
||||
const source = row[target];
|
||||
const match = regExp.exec(source);
|
||||
if (!match) {
|
||||
failedCount++;
|
||||
return null;
|
||||
}
|
||||
if (!replacement) {
|
||||
const match = regExp.exec(source);
|
||||
if (!match) {
|
||||
failedCount++;
|
||||
return null;
|
||||
}
|
||||
groupCount = groupCount && parseInt(groupCount);
|
||||
if (groupCount) {
|
||||
if (match.length != groupCount + 1) {
|
||||
|
||||
Reference in New Issue
Block a user