Skip to content

Commit

Permalink
fix: update regex get number in string
Browse files Browse the repository at this point in the history
  • Loading branch information
fibonacci998 authored Nov 10, 2023
1 parent 51ff948 commit 870bf95
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ export default class CreateConstraintInAttrPartitionJob extends BullableService
const listPartition = partitionTable.rows.map((partition: any) => {
const partitionBounds = partition.bounds;
const heightBound = {
lower: partitionBounds.match(/^\d+|\d+\b|\d+(?=\w)/g)[0],
upper: partitionBounds.match(/^\d+|\d+\b|\d+(?=\w)/g)[1],
lower: partitionBounds.match(/\d+/g)[0],
upper: partitionBounds.match(/\d+/g)[1],
};
return {
name: partition.child,
Expand Down

0 comments on commit 870bf95

Please sign in to comment.