Skip to content

Commit 397bc2a

Browse files
committed
Bugfix to trigger script
1 parent 6dffcb5 commit 397bc2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

singlecell/resources/queries/singlecell/samples.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ function beforeUpsert(row, oldRow, errors){
4848
}
4949

5050
if (row.tissue && row.tissue.match(/LD LN/)){
51-
row.tissue = row.tissue.replaceAll('LD LN', 'LD-LN')
51+
row.tissue = row.tissue.replace(/LD LN/g, 'LD-LN')
5252
}
5353

5454
if (row.tissue && row.tissue.match(/LD-LN /)){
55-
row.tissue = row.tissue.replaceAll('LD-LN ', 'LD-LN-')
55+
row.tissue = row.tissue.replace(/LD-LN /g, 'LD-LN-')
5656
}
5757

5858
if (['Lung L', 'Lung Left', 'Lung-Left'].indexOf(row.tissue) !== -1){

0 commit comments

Comments
 (0)