Adjust priority of slices
This commit is contained in:
parent
2d6cdd3fc8
commit
b2832c7427
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ const app = new App({
|
||||||
});
|
});
|
||||||
|
|
||||||
function extractNumber(txt) {
|
function extractNumber(txt) {
|
||||||
let array = ["\n", " ", "-"]
|
let array = ["-", " ", "\n"]
|
||||||
for (let i of array) {
|
for (let i of array) {
|
||||||
if (txt.includes(i)) {
|
if (txt.includes(i)) {
|
||||||
return txt.split(i)[0]
|
return txt.split(i)[0]
|
||||||
|
|
Loading…
Reference in a new issue